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 voidignoreCache(java.lang.String cacheName)Ignores a given cache if it wasn't beforebooleanisCacheIgnored(java.lang.String cacheName)Queries whether the cache is ignoredvoidsetIgnoredCaches(java.util.Set<java.lang.String> cacheNames)Replaces all ignored caches with the set providedvoidunignore(java.lang.String cacheName)No longer ignore the given cache if it was before
-
-
-
Method Detail
-
setIgnoredCaches
void setIgnoredCaches(java.util.Set<java.lang.String> cacheNames)
Replaces all ignored caches with the set provided- Parameters:
cacheNames- the set of caches to now ignore
-
unignore
void unignore(java.lang.String cacheName)
No longer ignore the given cache if it was before- Parameters:
cacheName- the cache to now not ignore
-
ignoreCache
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
-
-