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 void
filterPrivateCaches(Set<String> names)
Removes the private caches from the specified set of cache namesSet<String>
getInternalCacheNames()
Retrieves 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
unregisterInternalCache(String name)
Unregisters an internal cache
-
-
-
Method Detail
-
registerInternalCache
public void registerInternalCache(String name, Configuration configuration)
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
public void unregisterInternalCache(String name)
Description copied from interface:InternalCacheRegistry
Unregisters an internal cache- Specified by:
unregisterInternalCache
in interfaceInternalCacheRegistry
- Parameters:
name
- The name of the cache
-
isInternalCache
public boolean isInternalCache(String name)
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
public boolean isPrivateCache(String name)
Description copied from interface:InternalCacheRegistry
Returns whether the cache is private, i.e. it has been registered using the#registerInternalCache(String, Configuration, EnumSet
method without the) InternalCacheRegistry.Flag.USER
flag- Specified by:
isPrivateCache
in interfaceInternalCacheRegistry
-
getInternalCacheNames
public Set<String> getInternalCacheNames()
Description copied from interface:InternalCacheRegistry
Retrieves the names of all the internal caches- Specified by:
getInternalCacheNames
in interfaceInternalCacheRegistry
-
filterPrivateCaches
public void filterPrivateCaches(Set<String> names)
Description copied from interface:InternalCacheRegistry
Removes the private caches from the specified set of cache names- Specified by:
filterPrivateCaches
in interfaceInternalCacheRegistry
-
internalCacheHasFlag
public boolean internalCacheHasFlag(String name, InternalCacheRegistry.Flag flag)
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
-
-