Package com.tangosol.coherence.jcache
Interface CoherenceBasedConfiguration<K,V>
-
- Type Parameters:
K
- the type of theCache
keysV
- the type of theCache
values
- 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>
AConfiguration
for aCoherenceBasedCache
.Cache
s 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:
CoherenceBasedCompleteConfiguration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CoherenceBasedCache<K,V>
createCache(CoherenceBasedCacheManager manager, String name)
Creates aCoherenceBasedCache
based on the current state of theCoherenceBasedConfiguration
, to be owned by the specifiedCoherenceBasedCacheManager
.void
destroyCache(CoherenceBasedCacheManager manager, String name)
Destroy aCoherenceBasedCache
implementation.
-
-
-
Method Detail
-
createCache
CoherenceBasedCache<K,V> createCache(CoherenceBasedCacheManager manager, String name) throws IllegalArgumentException
Creates aCoherenceBasedCache
based on the current state of theCoherenceBasedConfiguration
, to be owned by the specifiedCoherenceBasedCacheManager
.- Parameters:
manager
- the owningCoherenceBasedCacheManager
name
- the name of theCache
to be configured- Returns:
- a
CoherenceBasedCache
- Throws:
IllegalArgumentException
- when aCache
can't be created based on the currentCoherenceBasedConfiguration
-
destroyCache
void destroyCache(CoherenceBasedCacheManager manager, String name)
Destroy aCoherenceBasedCache
implementation.- Parameters:
manager
- the owningCoherenceBasedCacheManager
name
- the name of theCache
to be destroyed
-
-