Package com.tangosol.coherence.config
Class CacheMappingRegistry
- java.lang.Object
-
- com.tangosol.coherence.config.CacheMappingRegistry
-
- All Implemented Interfaces:
Iterable<CacheMapping>
public class CacheMappingRegistry extends Object implements Iterable<CacheMapping>
Deprecated.As Coherence 14.1.1, useResourceMappingRegistry
.ACacheMappingRegistry
provides a mechanism manage a collection ofCacheMapping
s, together with the ability to search the registry for saidCacheMapping
s, possibly using wild-cards.CacheMappingRegistry
s areIterable
, the order of iteration being that in which theCacheMapping
s where added to the saidCacheMappingRegistry
.- Since:
- Coherence 12.1.2
- Author:
- bo 2011.06.29
-
-
Constructor Summary
Constructors Constructor Description CacheMappingRegistry()
Deprecated.Construct aCacheMappingRegistry
.CacheMappingRegistry(ResourceMappingRegistry registry)
Deprecated.CacheMappingRegistry delegates toResourceMappingRegistry
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CacheMapping
findCacheMapping(String sCacheName)
Deprecated.Attempts to find theCacheMapping
that matches the specified cache name.ResourceMappingRegistry
getMappingRegistry()
Deprecated.Get the underlyingResourceMappingRegistry
.Iterator<CacheMapping>
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 Detail
-
CacheMappingRegistry
public CacheMappingRegistry()
Deprecated.Construct aCacheMappingRegistry
.
-
CacheMappingRegistry
public CacheMappingRegistry(ResourceMappingRegistry registry)
Deprecated.CacheMappingRegistry delegates toResourceMappingRegistry
.- Parameters:
registry
- delegate resource registry containing CacheMapping- Since:
- Coherence 14.1.1
-
-
Method Detail
-
iterator
public Iterator<CacheMapping> iterator()
Deprecated.- Specified by:
iterator
in interfaceIterable<CacheMapping>
-
register
public void register(CacheMapping cacheMapping) throws IllegalArgumentException
Deprecated.Registers aCacheMapping
with theCacheMappingRegistry
.- Parameters:
cacheMapping
- theCacheMapping
to register- Throws:
IllegalArgumentException
- if aCacheMapping
with the same pattern has already been registered
-
findCacheMapping
public CacheMapping findCacheMapping(String sCacheName)
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
public ResourceMappingRegistry getMappingRegistry()
Deprecated.Get the underlyingResourceMappingRegistry
.- Returns:
- underlying registry
-
-