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.ACacheMappingRegistryprovides a mechanism manage a collection ofCacheMappings, together with the ability to search the registry for saidCacheMappings, possibly using wild-cards.CacheMappingRegistrys areIterable, the order of iteration being that in which theCacheMappings 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 CacheMappingfindCacheMapping(String sCacheName)Deprecated.Attempts to find theCacheMappingthat matches the specified cache name.ResourceMappingRegistrygetMappingRegistry()Deprecated.Get the underlyingResourceMappingRegistry.Iterator<CacheMapping>iterator()Deprecated.voidregister(CacheMapping cacheMapping)Deprecated.Registers aCacheMappingwith theCacheMappingRegistry.intsize()Deprecated.Determines the number ofCacheMappings 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:
iteratorin interfaceIterable<CacheMapping>
-
register
public void register(CacheMapping cacheMapping) throws IllegalArgumentException
Deprecated.Registers aCacheMappingwith theCacheMappingRegistry.- Parameters:
cacheMapping- theCacheMappingto register- Throws:
IllegalArgumentException- if aCacheMappingwith the same pattern has already been registered
-
findCacheMapping
public CacheMapping findCacheMapping(String sCacheName)
Deprecated.Attempts to find theCacheMappingthat matches the specified cache name.The matching algorithm first attempts to find an exact match of a
CacheMappingwith the provided cache name. Should that fail, all of the currently registered wild-cardedCacheMappings 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:
nullif aCacheMappingcould not be located for the specified cache name
-
size
public int size()
Deprecated.Determines the number ofCacheMappings in theCacheMappingRegistry.- Returns:
- the number of
CacheMappings
-
getMappingRegistry
public ResourceMappingRegistry getMappingRegistry()
Deprecated.Get the underlyingResourceMappingRegistry.- Returns:
- underlying registry
-
-