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