Package org.infinispan.server.core
Class AbstractCacheIgnoreAware
- java.lang.Object
-
- org.infinispan.server.core.AbstractCacheIgnoreAware
-
- All Implemented Interfaces:
CacheIgnoreAware
- Direct Known Subclasses:
AbstractProtocolServer
public class AbstractCacheIgnoreAware extends java.lang.Object implements CacheIgnoreAware
Abstract class providing stock implementations forCacheIgnoreAwareso all that is required is to extend this class.- Since:
- 9.0
- Author:
- gustavonalle, wburns
-
-
Constructor Summary
Constructors Constructor Description AbstractCacheIgnoreAware()
-
Method Summary
All Methods Instance Methods Concrete 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
public void setIgnoredCaches(java.util.Set<java.lang.String> cacheNames)
Description copied from interface:CacheIgnoreAwareReplaces all ignored caches with the set provided- Specified by:
setIgnoredCachesin interfaceCacheIgnoreAware- Parameters:
cacheNames- the set of caches to now ignore
-
unignore
public void unignore(java.lang.String cacheName)
Description copied from interface:CacheIgnoreAwareNo longer ignore the given cache if it was before- Specified by:
unignorein interfaceCacheIgnoreAware- Parameters:
cacheName- the cache to now not ignore
-
ignoreCache
public void ignoreCache(java.lang.String cacheName)
Description copied from interface:CacheIgnoreAwareIgnores a given cache if it wasn't before- Specified by:
ignoreCachein interfaceCacheIgnoreAware- Parameters:
cacheName- the cache to ignore
-
isCacheIgnored
public boolean isCacheIgnored(java.lang.String cacheName)
Description copied from interface:CacheIgnoreAwareQueries whether the cache is ignored- Specified by:
isCacheIgnoredin interfaceCacheIgnoreAware- Parameters:
cacheName- the cache to see if it is ignored- Returns:
- whether or not the cache is ignored
-
-