Package org.infinispan.registry.impl
Class InternalCacheRegistryImpl
- java.lang.Object
-
- org.infinispan.registry.impl.InternalCacheRegistryImpl
-
- All Implemented Interfaces:
InternalCacheRegistry
public class InternalCacheRegistryImpl extends Object implements 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 Constructor Description InternalCacheRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilterPrivateCaches(Set<String> names)Removes the private caches from the specified set of cache namesSet<String>getInternalCacheNames()Retrieves 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.voidunregisterInternalCache(String name)Unregisters an internal cache
-
-
-
Method Detail
-
registerInternalCache
public void registerInternalCache(String name, Configuration configuration)
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
public void unregisterInternalCache(String name)
Description copied from interface:InternalCacheRegistryUnregisters an internal cache- Specified by:
unregisterInternalCachein interfaceInternalCacheRegistry- Parameters:
name- The name of the cache
-
isInternalCache
public boolean isInternalCache(String name)
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
public boolean isPrivateCache(String name)
Description copied from interface:InternalCacheRegistryReturns whether the cache is private, i.e. it has been registered using the#registerInternalCache(String, Configuration, EnumSetmethod without the) InternalCacheRegistry.Flag.USERflag- Specified by:
isPrivateCachein interfaceInternalCacheRegistry
-
getInternalCacheNames
public Set<String> getInternalCacheNames()
Description copied from interface:InternalCacheRegistryRetrieves the names of all the internal caches- Specified by:
getInternalCacheNamesin interfaceInternalCacheRegistry
-
filterPrivateCaches
public void filterPrivateCaches(Set<String> names)
Description copied from interface:InternalCacheRegistryRemoves the private caches from the specified set of cache names- Specified by:
filterPrivateCachesin interfaceInternalCacheRegistry
-
internalCacheHasFlag
public boolean internalCacheHasFlag(String name, InternalCacheRegistry.Flag flag)
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
-
-