Package org.infinispan.registry.impl
Class InternalCacheRegistryImpl
java.lang.Object
org.infinispan.registry.impl.InternalCacheRegistryImpl
- All Implemented Interfaces:
InternalCacheRegistry
InternalCacheRegistryImpl.
- Since:
- 7.2
- Author:
- Tristan Tarrant
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.registry.InternalCacheRegistry
InternalCacheRegistry.Flag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilterPrivateCaches(Set<String> names) Removes the private caches from the specified set of cache namesRetrieves the names of all the internal cachesbooleaninternalCacheHasFlag(String name, InternalCacheRegistry.Flag flag) Returns whether a particular internal cache has a specific flagbooleanisInternalCache(String name) Returns whether the cache is internal, i.e.booleanisPrivateCache(String name) Returns whether the cache is private, i.e.voidregisterInternalCache(String name, Configuration configuration) Registers an internal cache.voidregisterInternalCache(String name, Configuration configuration, EnumSet<InternalCacheRegistry.Flag> flags) Registers an internal cache with the specified flags.voidUnregisters an internal cache
-
Constructor Details
-
InternalCacheRegistryImpl
public InternalCacheRegistryImpl()
-
-
Method Details
-
registerInternalCache
Description copied from interface:InternalCacheRegistryRegisters an internal cache. The cache will be marked as private and volatile- Specified by:
registerInternalCachein interfaceInternalCacheRegistry- Parameters:
name- The name of the cacheconfiguration- The configuration for the cache
-
registerInternalCache
public void registerInternalCache(String name, Configuration configuration, EnumSet<InternalCacheRegistry.Flag> flags) Description copied from interface:InternalCacheRegistryRegisters an internal cache with the specified flags.- Specified by:
registerInternalCachein interfaceInternalCacheRegistry- Parameters:
name- The name of the cacheconfiguration- The configuration for the cacheflags- The flags which determine the behaviour of the cache. SeeInternalCacheRegistry.Flag
-
unregisterInternalCache
Description copied from interface:InternalCacheRegistryUnregisters an internal cache- Specified by:
unregisterInternalCachein interfaceInternalCacheRegistry- Parameters:
name- The name of the cache
-
isInternalCache
Description copied from interface:InternalCacheRegistryReturns whether the cache is internal, i.e. it has been registered using theInternalCacheRegistry.registerInternalCache(String, Configuration)method- Specified by:
isInternalCachein interfaceInternalCacheRegistry
-
isPrivateCache
Description copied from interface:InternalCacheRegistryReturns whether the cache is private, i.e. it has been registered using theInternalCacheRegistry.registerInternalCache(String, Configuration, EnumSet<Flag>)method without theInternalCacheRegistry.Flag.USERflag- Specified by:
isPrivateCachein interfaceInternalCacheRegistry
-
getInternalCacheNames
Description copied from interface:InternalCacheRegistryRetrieves the names of all the internal caches- Specified by:
getInternalCacheNamesin interfaceInternalCacheRegistry
-
filterPrivateCaches
Description copied from interface:InternalCacheRegistryRemoves the private caches from the specified set of cache names- Specified by:
filterPrivateCachesin interfaceInternalCacheRegistry
-
internalCacheHasFlag
Description copied from interface:InternalCacheRegistryReturns whether a particular internal cache has a specific flag- Specified by:
internalCacheHasFlagin interfaceInternalCacheRegistry- Parameters:
name- the name of the internal cacheflag- the flag to check- Returns:
- true if the internal cache has the flag, false otherwise
-