Package org.infinispan.registry
Interface InternalCacheRegistry
-
public interface InternalCacheRegistryInternalCacheRegistry. Components which create caches for internal use should use this class to create/retrieve them- Since:
- 7.2
- Author:
- Tristan Tarrant
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInternalCacheRegistry.Flag
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfilterPrivateCaches(java.util.Set<java.lang.String> names)Removes the private caches from the specified set of cache namesjava.util.Set<java.lang.String>getInternalCacheNames()Retrieves the names of all the internal cachesbooleaninternalCacheHasFlag(java.lang.String name, InternalCacheRegistry.Flag flag)Returns whether a particular internal cache has a specific flagbooleanisInternalCache(java.lang.String name)Returns whether the cache is internal, i.e.booleanisPrivateCache(java.lang.String name)Returns whether the cache is private, i.e.voidregisterInternalCache(java.lang.String name, Configuration configuration)Registers an internal cache.voidregisterInternalCache(java.lang.String name, Configuration configuration, java.util.EnumSet<InternalCacheRegistry.Flag> flags)Registers an internal cache with the specified flags.voidunregisterInternalCache(java.lang.String name)Unregisters an internal cache
-
-
-
Method Detail
-
registerInternalCache
void registerInternalCache(java.lang.String name, Configuration configuration)Registers an internal cache. The cache will be marked as private and volatile- Parameters:
name- The name of the cacheconfiguration- The configuration for the cache
-
registerInternalCache
void registerInternalCache(java.lang.String name, Configuration configuration, java.util.EnumSet<InternalCacheRegistry.Flag> flags)Registers an internal cache with the specified flags.- Parameters:
name- The name of the cacheconfiguration- The configuration for the cacheflags- The flags which determine the behaviour of the cache. SeeInternalCacheRegistry.Flag
-
unregisterInternalCache
void unregisterInternalCache(java.lang.String name)
Unregisters an internal cache- Parameters:
name- The name of the cache
-
isInternalCache
boolean isInternalCache(java.lang.String name)
Returns whether the cache is internal, i.e. it has been registered using theregisterInternalCache(String, Configuration)method
-
isPrivateCache
boolean isPrivateCache(java.lang.String name)
Returns whether the cache is private, i.e. it has been registered using the#registerInternalCache(String, Configuration, EnumSetmethod without the) InternalCacheRegistry.Flag.USERflag
-
getInternalCacheNames
java.util.Set<java.lang.String> getInternalCacheNames()
Retrieves the names of all the internal caches
-
filterPrivateCaches
void filterPrivateCaches(java.util.Set<java.lang.String> names)
Removes the private caches from the specified set of cache names
-
internalCacheHasFlag
boolean internalCacheHasFlag(java.lang.String name, InternalCacheRegistry.Flag flag)Returns whether a particular internal cache has a specific flag- Parameters:
name- the name of the internal cacheflag- the flag to check- Returns:
- true if the internal cache has the flag, false otherwise
-
-