Package com.tangosol.coherence.jcache
Interface CoherenceBasedConfiguration<K,V>
- Type Parameters:
K- the type of theCachekeysV- the type of theCachevalues
- All Superinterfaces:
javax.cache.configuration.Configuration<K,,V> Serializable
- All Known Subinterfaces:
CoherenceBasedCompleteConfiguration<K,V>
- All Known Implementing Classes:
AbstractCoherenceBasedCompleteConfiguration,LocalCacheConfiguration,PartitionedCacheConfiguration,PassThroughCacheConfiguration,RemoteCacheConfiguration
public interface CoherenceBasedConfiguration<K,V>
extends javax.cache.configuration.Configuration<K,V>
A
Configuration for a CoherenceBasedCache.
Caches produced by an implementation of this configuration
are not guaranteed to be compliant to the JCache specification.
Only configurations that additionally implement the appropriate JCache
configuration interface(s), namely
the CompleteConfiguration interface,
are guaranteed to be compliant.
- Since:
- Coherence 12.1.3
- Author:
- bo 2013.10.22
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateCache(CoherenceBasedCacheManager manager, String name) Creates aCoherenceBasedCachebased on the current state of theCoherenceBasedConfiguration, to be owned by the specifiedCoherenceBasedCacheManager.voiddestroyCache(CoherenceBasedCacheManager manager, String name) Destroy aCoherenceBasedCacheimplementation.Methods inherited from interface javax.cache.configuration.Configuration
getKeyType, getValueType, isStoreByValue
-
Method Details
-
createCache
CoherenceBasedCache<K,V> createCache(CoherenceBasedCacheManager manager, String name) throws IllegalArgumentException Creates aCoherenceBasedCachebased on the current state of theCoherenceBasedConfiguration, to be owned by the specifiedCoherenceBasedCacheManager.- Parameters:
manager- the owningCoherenceBasedCacheManagername- the name of theCacheto be configured- Returns:
- a
CoherenceBasedCache - Throws:
IllegalArgumentException- when aCachecan't be created based on the currentCoherenceBasedConfiguration
-
destroyCache
Destroy aCoherenceBasedCacheimplementation.- Parameters:
manager- the owningCoherenceBasedCacheManagername- the name of theCacheto be destroyed
-