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 CacheMappings, together with the ability to search the registry for
said CacheMappings, possibly using wild-cards.
CacheMappingRegistrys are Iterable, the order of iteration
being that in which the CacheMappings where added to the said
CacheMappingRegistry.
- Since:
- Coherence 12.1.2
- Author:
- bo 2011.06.29
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Construct aCacheMappingRegistry.CacheMappingRegistry(ResourceMappingRegistry registry) Deprecated.CacheMappingRegistry delegates toResourceMappingRegistry. -
Method Summary
Modifier and TypeMethodDescriptionfindCacheMapping(String sCacheName) Deprecated.Attempts to find theCacheMappingthat matches the specified cache name.Deprecated.Get the underlyingResourceMappingRegistry.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, waitMethods 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:
iteratorin interfaceIterable<CacheMapping>
-
register
Deprecated.Registers aCacheMappingwith theCacheMappingRegistry.- Parameters:
cacheMapping- theCacheMappingto register- Throws:
IllegalArgumentException- if aCacheMappingwith the same pattern has already been registered
-
findCacheMapping
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
Deprecated.Get the underlyingResourceMappingRegistry.- Returns:
- underlying registry
-
ResourceMappingRegistry.