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 Object implements CacheIgnoreAware
Abstract class providing stock implementations forCacheIgnoreAware
so 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 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
public void setIgnoredCaches(Set<String> cacheNames)
Description copied from interface:CacheIgnoreAware
Replaces all ignored caches with the set provided- Specified by:
setIgnoredCaches
in interfaceCacheIgnoreAware
- Parameters:
cacheNames
- the set of caches to now ignore
-
unignore
public void unignore(String cacheName)
Description copied from interface:CacheIgnoreAware
No longer ignore the given cache if it was before- Specified by:
unignore
in interfaceCacheIgnoreAware
- Parameters:
cacheName
- the cache to now not ignore
-
ignoreCache
public void ignoreCache(String cacheName)
Description copied from interface:CacheIgnoreAware
Ignores a given cache if it wasn't before- Specified by:
ignoreCache
in interfaceCacheIgnoreAware
- Parameters:
cacheName
- the cache to ignore
-
isCacheIgnored
public boolean isCacheIgnored(String cacheName)
Description copied from interface:CacheIgnoreAware
Queries whether the cache is ignored- Specified by:
isCacheIgnored
in interfaceCacheIgnoreAware
- Parameters:
cacheName
- the cache to see if it is ignored- Returns:
- whether or not the cache is ignored
-
-