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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
filterPrivateCaches
(Set<String> names) Removes the private caches from the specified set of cache namesRetrieves the names of all the internal cachesboolean
internalCacheHasFlag
(String name, InternalCacheRegistry.Flag flag) Returns whether a particular internal cache has a specific flagboolean
isInternalCache
(String name) Returns whether the cache is internal, i.e.boolean
isPrivateCache
(String name) Returns whether the cache is private, i.e.void
registerInternalCache
(String name, Configuration configuration) Registers an internal cache.void
registerInternalCache
(String name, Configuration configuration, EnumSet<InternalCacheRegistry.Flag> flags) Registers an internal cache with the specified flags.void
void
Unregisters an internal cache
-
Constructor Details
-
InternalCacheRegistryImpl
public InternalCacheRegistryImpl()
-
-
Method Details
-
registerInternalCache
Description copied from interface:InternalCacheRegistry
Registers an internal cache. The cache will be marked as private and volatile- Specified by:
registerInternalCache
in 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:InternalCacheRegistry
Registers an internal cache with the specified flags.- Specified by:
registerInternalCache
in 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:InternalCacheRegistry
Unregisters an internal cache- Specified by:
unregisterInternalCache
in interfaceInternalCacheRegistry
- Parameters:
name
- The name of the cache
-
isInternalCache
Description copied from interface:InternalCacheRegistry
Returns whether the cache is internal, i.e. it has been registered using theInternalCacheRegistry.registerInternalCache(String, Configuration)
method- Specified by:
isInternalCache
in interfaceInternalCacheRegistry
-
isPrivateCache
Description copied from interface:InternalCacheRegistry
Returns whether the cache is private, i.e. it has been registered using theInternalCacheRegistry.registerInternalCache(String, Configuration, EnumSet<Flag>)
method without theInternalCacheRegistry.Flag.USER
flag- Specified by:
isPrivateCache
in interfaceInternalCacheRegistry
-
getInternalCacheNames
Description copied from interface:InternalCacheRegistry
Retrieves the names of all the internal caches- Specified by:
getInternalCacheNames
in interfaceInternalCacheRegistry
-
filterPrivateCaches
Description copied from interface:InternalCacheRegistry
Removes the private caches from the specified set of cache names- Specified by:
filterPrivateCaches
in interfaceInternalCacheRegistry
-
internalCacheHasFlag
Description copied from interface:InternalCacheRegistry
Returns whether a particular internal cache has a specific flag- Specified by:
internalCacheHasFlag
in interfaceInternalCacheRegistry
- Parameters:
name
- the name of the internal cacheflag
- the flag to check- Returns:
- true if the internal cache has the flag, false otherwise
-
startInternalCaches
public void startInternalCaches()- Specified by:
startInternalCaches
in interfaceInternalCacheRegistry
-