@Endpoint(id="caches",
defaultEnabled=false)
public class CachesEndpoint
extends java.lang.Object
Endpoint
to manage caches.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Endpoint name.
|
Constructor and Description |
---|
CachesEndpoint(CacheManager<java.lang.Object> cacheManager) |
Modifier and Type | Method and Description |
---|---|
io.reactivex.Maybe<java.util.Map<java.lang.String,java.lang.Object>> |
getCache(@NotBlank java.lang.String name)
Returns the cache as a
Maybe . |
io.reactivex.Single<java.util.Map<java.lang.String,java.lang.Object>> |
getCaches()
Returns the caches as a
Single . |
io.reactivex.Maybe<java.lang.Boolean> |
invalidateCache(@NotBlank java.lang.String name)
Invalidates the cache.
|
io.reactivex.Maybe<java.lang.Boolean> |
invalidateCaches()
Invalidates all the caches.
|
public static final java.lang.String NAME
public CachesEndpoint(CacheManager<java.lang.Object> cacheManager)
cacheManager
- The CacheManager
@Read public io.reactivex.Single<java.util.Map<java.lang.String,java.lang.Object>> getCaches()
Single
.Single
@Read public io.reactivex.Maybe<java.util.Map<java.lang.String,java.lang.Object>> getCache(@NotBlank @Selector @NotBlank java.lang.String name)
Maybe
.name
- The name of the cache to retrieveSingle
@Delete public io.reactivex.Maybe<java.lang.Boolean> invalidateCaches()
@Delete public io.reactivex.Maybe<java.lang.Boolean> invalidateCache(@NotBlank @Selector @NotBlank java.lang.String name)
name
- The name of the cache to invalidate