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>AConfigurationfor aCoherenceBasedCache.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
CompleteConfigurationinterface, are guaranteed to be compliant.- Since:
- Coherence 12.1.3
- Author:
- bo 2013.10.22
- See Also:
CoherenceBasedCompleteConfiguration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CoherenceBasedCache<K,V>createCache(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.
-
-
-
Method Detail
-
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
void destroyCache(CoherenceBasedCacheManager manager, String name)
Destroy aCoherenceBasedCacheimplementation.- Parameters:
manager- the owningCoherenceBasedCacheManagername- the name of theCacheto be destroyed
-
-