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>
A
Configuration
for a CoherenceBasedCache
.
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:
-
Method Summary
Modifier and TypeMethodDescriptioncreateCache
(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.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 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
Destroy aCoherenceBasedCache
implementation.- Parameters:
manager
- the owningCoherenceBasedCacheManager
name
- the name of theCache
to be destroyed
-