public class InternalCacheRegistryImpl extends Object implements InternalCacheRegistry
InternalCacheRegistry.Flag
Constructor and Description |
---|
InternalCacheRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
filterPrivateCaches(Set<String> names)
Removes the private caches from the specified set of cache names
|
Set<String> |
getInternalCacheNames()
Retrieves the names of all the internal caches
|
void |
init(EmbeddedCacheManager cacheManager) |
boolean |
internalCacheHasFlag(String name,
InternalCacheRegistry.Flag flag)
Returns whether a particular internal cache has a specific flag
|
boolean |
isInternalCache(String name)
Returns whether the cache is internal, 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 |
stop() |
public void init(EmbeddedCacheManager cacheManager)
public void stop()
public void registerInternalCache(String name, Configuration configuration)
InternalCacheRegistry
registerInternalCache
in interface InternalCacheRegistry
name
- The name of the cacheconfiguration
- The configuration for the cachepublic void registerInternalCache(String name, Configuration configuration, EnumSet<InternalCacheRegistry.Flag> flags)
InternalCacheRegistry
registerInternalCache
in interface InternalCacheRegistry
name
- The name of the cacheconfiguration
- The configuration for the cacheflags
- The flags which determine the behaviour of the cache. See InternalCacheRegistry.Flag
public boolean isInternalCache(String name)
InternalCacheRegistry
InternalCacheRegistry.registerInternalCache(String, Configuration)
methodisInternalCache
in interface InternalCacheRegistry
public Set<String> getInternalCacheNames()
InternalCacheRegistry
getInternalCacheNames
in interface InternalCacheRegistry
public void filterPrivateCaches(Set<String> names)
InternalCacheRegistry
filterPrivateCaches
in interface InternalCacheRegistry
public boolean internalCacheHasFlag(String name, InternalCacheRegistry.Flag flag)
InternalCacheRegistry
internalCacheHasFlag
in interface InternalCacheRegistry
name
- the name of the internal cacheflag
- the flag to checkCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.