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
|
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.
|
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
|
public void registerInternalCache(String name, Configuration configuration)
InternalCacheRegistryregisterInternalCache in interface InternalCacheRegistryname - The name of the cacheconfiguration - The configuration for the cachepublic void registerInternalCache(String name, Configuration configuration, EnumSet<InternalCacheRegistry.Flag> flags)
InternalCacheRegistryregisterInternalCache in interface InternalCacheRegistryname - The name of the cacheconfiguration - The configuration for the cacheflags - The flags which determine the behaviour of the cache. See InternalCacheRegistry.Flagpublic void unregisterInternalCache(String name)
InternalCacheRegistryunregisterInternalCache in interface InternalCacheRegistryname - The name of the cachepublic boolean isInternalCache(String name)
InternalCacheRegistryInternalCacheRegistry.registerInternalCache(String, Configuration) methodisInternalCache in interface InternalCacheRegistrypublic boolean isPrivateCache(String name)
InternalCacheRegistry#registerInternalCache(String, Configuration, EnumSet) method without the
InternalCacheRegistry.Flag.USER flagisPrivateCache in interface InternalCacheRegistrypublic Set<String> getInternalCacheNames()
InternalCacheRegistrygetInternalCacheNames in interface InternalCacheRegistrypublic void filterPrivateCaches(Set<String> names)
InternalCacheRegistryfilterPrivateCaches in interface InternalCacheRegistrypublic boolean internalCacheHasFlag(String name, InternalCacheRegistry.Flag flag)
InternalCacheRegistryinternalCacheHasFlag in interface InternalCacheRegistryname - the name of the internal cacheflag - the flag to checkCopyright © 2022 JBoss by Red Hat. All rights reserved.