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 SummaryConstructors Constructor Description CacheMappingRegistry()Deprecated.Construct aCacheMappingRegistry.CacheMappingRegistry(ResourceMappingRegistry registry)Deprecated.CacheMappingRegistry delegates toResourceMappingRegistry.
 - 
Method SummaryAll 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Constructor Detail- 
CacheMappingRegistrypublic CacheMappingRegistry() Deprecated.Construct aCacheMappingRegistry.
 - 
CacheMappingRegistrypublic CacheMappingRegistry(ResourceMappingRegistry registry) Deprecated.CacheMappingRegistry delegates toResourceMappingRegistry.- Parameters:
- registry- delegate resource registry containing CacheMapping
- Since:
- Coherence 14.1.1
 
 
- 
 - 
Method Detail- 
iteratorpublic Iterator<CacheMapping> iterator() Deprecated.- Specified by:
- iteratorin interface- Iterable<CacheMapping>
 
 - 
registerpublic void register(CacheMapping cacheMapping) throws IllegalArgumentException Deprecated.Registers aCacheMappingwith theCacheMappingRegistry.- Parameters:
- cacheMapping- the- CacheMappingto register
- Throws:
- IllegalArgumentException- if a- CacheMappingwith the same pattern has already been registered
 
 - 
findCacheMappingpublic 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 a- CacheMappingcould not be located for the specified cache name
 
 - 
sizepublic int size() Deprecated.Determines the number ofCacheMappings in theCacheMappingRegistry.- Returns:
- the number of CacheMappings
 
 - 
getMappingRegistrypublic ResourceMappingRegistry getMappingRegistry() Deprecated.Get the underlyingResourceMappingRegistry.- Returns:
- underlying registry
 
 
- 
 
-