Package org.infinispan.server.core
Interface CacheIgnoreAware
-
- All Known Subinterfaces:
ProtocolServer<C>
- All Known Implementing Classes:
AbstractCacheIgnoreAware,AbstractProtocolServer,HotRodServer,MemcachedServer,RestServer
public interface CacheIgnoreAwareDefines an interface to be used when a cache is to be ignored by a server implementation. Any implementation should be thread safe and allow for concurrent methods to be invoked.- Since:
- 9.0
- Author:
- gustavonalle, wburns
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<java.util.Collection<java.lang.String>>getIgnoredCaches(java.lang.String cacheManager)java.util.concurrent.CompletionStage<java.lang.Void>ignoreCache(java.lang.String cacheName)Ignores a given cache if it wasn't beforevoidinitialize(EmbeddedCacheManager cacheManager)booleanisCacheIgnored(java.lang.String cacheName)Queries whether the cache is ignoredjava.util.concurrent.CompletionStage<java.lang.Boolean>unignore(java.lang.String cacheName)No longer ignore the given cache if it was before
-
-
-
Method Detail
-
unignore
java.util.concurrent.CompletionStage<java.lang.Boolean> unignore(java.lang.String cacheName)
No longer ignore the given cache if it was before- Parameters:
cacheName- the cache to now not ignore
-
ignoreCache
java.util.concurrent.CompletionStage<java.lang.Void> ignoreCache(java.lang.String cacheName)
Ignores a given cache if it wasn't before- Parameters:
cacheName- the cache to ignore
-
isCacheIgnored
boolean isCacheIgnored(java.lang.String cacheName)
Queries whether the cache is ignored- Parameters:
cacheName- the cache to see if it is ignored- Returns:
- whether or not the cache is ignored
-
getIgnoredCaches
java.util.concurrent.CompletionStage<java.util.Collection<java.lang.String>> getIgnoredCaches(java.lang.String cacheManager)
- Returns:
- Set of all cache names currently ignored for the cache manager
-
initialize
void initialize(EmbeddedCacheManager cacheManager)
-
-