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 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
-
initialize
public void initialize(EmbeddedCacheManager cacheManager)
- Specified by:
initializein interfaceCacheIgnoreAware
-
unignore
public java.util.concurrent.CompletionStage<java.lang.Boolean> 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 java.util.concurrent.CompletionStage<java.lang.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
-
getIgnoredCaches
public java.util.concurrent.CompletionStage<java.util.Collection<java.lang.String>> getIgnoredCaches(java.lang.String cacheManager)
- Specified by:
getIgnoredCachesin interfaceCacheIgnoreAware- Returns:
- Set of all cache names currently ignored for the cache manager
-
-