Package org.infinispan.server.core
Interface CacheIgnoreAware
-
- All Known Subinterfaces:
ProtocolServer<C>
- All Known Implementing Classes:
AbstractCacheIgnoreAware
,AbstractProtocolServer
,HotRodServer
,MemcachedServer
,RestServer
public interface CacheIgnoreAware
Defines 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 void
ignoreCache(String cacheName)
Ignores a given cache if it wasn't beforeboolean
isCacheIgnored(String cacheName)
Queries whether the cache is ignoredvoid
setIgnoredCaches(Set<String> cacheNames)
Replaces all ignored caches with the set providedvoid
unignore(String cacheName)
No longer ignore the given cache if it was before
-
-
-
Method Detail
-
setIgnoredCaches
void setIgnoredCaches(Set<String> cacheNames)
Replaces all ignored caches with the set provided- Parameters:
cacheNames
- the set of caches to now ignore
-
unignore
void unignore(String cacheName)
No longer ignore the given cache if it was before- Parameters:
cacheName
- the cache to now not ignore
-
ignoreCache
void ignoreCache(String cacheName)
Ignores a given cache if it wasn't before- Parameters:
cacheName
- the cache to ignore
-
isCacheIgnored
boolean isCacheIgnored(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
-
-