Package com.tangosol.coherence.config
Class CacheMappingRegistry
java.lang.Object
com.tangosol.coherence.config.CacheMappingRegistry
- All Implemented Interfaces:
Iterable<CacheMapping>
Deprecated.
A
CacheMappingRegistry
provides a mechanism manage a collection
of CacheMapping
s, together with the ability to search the registry for
said CacheMapping
s, possibly using wild-cards.
CacheMappingRegistry
s are Iterable
, the order of iteration
being that in which the CacheMapping
s where added to the said
CacheMappingRegistry
.
- Since:
- Coherence 12.1.2
- Author:
- bo 2011.06.29
-
Constructor Summary
ConstructorDescriptionDeprecated.Construct aCacheMappingRegistry
.CacheMappingRegistry
(ResourceMappingRegistry registry) Deprecated.CacheMappingRegistry delegates toResourceMappingRegistry
. -
Method Summary
Modifier and TypeMethodDescriptionfindCacheMapping
(String sCacheName) Deprecated.Attempts to find theCacheMapping
that matches the specified cache name.Deprecated.Get the underlyingResourceMappingRegistry
.iterator()
Deprecated.void
register
(CacheMapping cacheMapping) Deprecated.Registers aCacheMapping
with theCacheMappingRegistry
.int
size()
Deprecated.Determines the number ofCacheMapping
s in theCacheMappingRegistry
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CacheMappingRegistry
public CacheMappingRegistry()Deprecated.Construct aCacheMappingRegistry
. -
CacheMappingRegistry
Deprecated.CacheMappingRegistry delegates toResourceMappingRegistry
.- Parameters:
registry
- delegate resource registry containing CacheMapping- Since:
- Coherence 14.1.1
-
-
Method Details
-
iterator
Deprecated.- Specified by:
iterator
in interfaceIterable<CacheMapping>
-
register
Deprecated.Registers aCacheMapping
with theCacheMappingRegistry
.- Parameters:
cacheMapping
- theCacheMapping
to register- Throws:
IllegalArgumentException
- if aCacheMapping
with the same pattern has already been registered
-
findCacheMapping
Deprecated.Attempts to find theCacheMapping
that matches the specified cache name.The matching algorithm first attempts to find an exact match of a
CacheMapping
with the provided cache name. Should that fail, all of the currently registered wild-cardedCacheMapping
s are searched to find a match (in the order in which they were registered), with the most specific (longest match) being returned if there are multiple matches.- Parameters:
sCacheName
- the cache name- Returns:
null
if aCacheMapping
could not be located for the specified cache name
-
size
public int size()Deprecated.Determines the number ofCacheMapping
s in theCacheMappingRegistry
.- Returns:
- the number of
CacheMapping
s
-
getMappingRegistry
Deprecated.Get the underlyingResourceMappingRegistry
.- Returns:
- underlying registry
-
ResourceMappingRegistry
.