Class PartitionedCacheConfiguration<K,V>
- java.lang.Object
-
- com.tangosol.coherence.jcache.AbstractCoherenceBasedCompleteConfiguration<K,V>
-
- com.tangosol.coherence.jcache.partitionedcache.PartitionedCacheConfiguration<K,V>
-
- Type Parameters:
K
- the type of the keysV
- the type of the values
- All Implemented Interfaces:
CoherenceBasedCompleteConfiguration<K,V>
,CoherenceBasedConfiguration<K,V>
,ExternalizableLite
,PortableObject
,Serializable
,javax.cache.configuration.CompleteConfiguration<K,V>
,javax.cache.configuration.Configuration<K,V>
public class PartitionedCacheConfiguration<K,V> extends AbstractCoherenceBasedCompleteConfiguration<K,V>
AConfiguration
for aCache
based on a Coherence <distributed-scheme> or more specifically a partitioned (aka: distributed)NamedCache
.- Since:
- Coherence 12.1.3
- Author:
- bo 2013.10.23
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.tangosol.coherence.jcache.AbstractCoherenceBasedCompleteConfiguration
m_clzKey, m_clzValue, m_factoryCacheLoader, m_factoryCacheWriter, m_factoryExpiryPolicy, m_fManagementEnabled, m_fReadThrough, m_fStatisticsEnabled, m_fStoreByValue, m_fWriteThrough, m_listListenerConfigurations
-
-
Constructor Summary
Constructors Constructor Description PartitionedCacheConfiguration()
Constructs a defaultPartitionedCacheConfiguration
.PartitionedCacheConfiguration(javax.cache.configuration.CompleteConfiguration<K,V> configuration)
Constructs aPartitionedCacheConfiguration
based on aCompleteConfiguration
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoherenceBasedCache<K,V>
createCache(CoherenceBasedCacheManager manager, String sJCacheName)
Creates aCoherenceBasedCache
based on the current state of theCoherenceBasedConfiguration
, to be owned by the specifiedCoherenceBasedCacheManager
.void
destroyCache(CoherenceBasedCacheManager manager, String sJcacheName)
Destroy aCoherenceBasedCache
implementation.protected void
validate()
Validates thePartitionedCacheConfiguration
.-
Methods inherited from class com.tangosol.coherence.jcache.AbstractCoherenceBasedCompleteConfiguration
addCacheEntryListenerConfiguration, equals, getCacheEntryListenerConfigurations, getCacheLoaderFactory, getCacheWriterFactory, getExpiryPolicyFactory, getKeyType, getValueType, hashCode, isManagementEnabled, isReadThrough, isStatisticsEnabled, isStoreByValue, isWriteThrough, readExternal, readExternal, setCacheLoaderFactory, setCacheWriterFactory, setExpiryPolicyFactory, setManagementEnabled, setReadThrough, setStatisticsEnabled, setStoreByValue, setTypes, setWriteThrough, toString, writeExternal, writeExternal
-
-
-
-
Constructor Detail
-
PartitionedCacheConfiguration
public PartitionedCacheConfiguration()
Constructs a defaultPartitionedCacheConfiguration
.
-
PartitionedCacheConfiguration
public PartitionedCacheConfiguration(javax.cache.configuration.CompleteConfiguration<K,V> configuration)
Constructs aPartitionedCacheConfiguration
based on aCompleteConfiguration
.- Parameters:
configuration
- theCompleteConfiguration
-
-
Method Detail
-
validate
protected void validate()
Validates thePartitionedCacheConfiguration
.
-
createCache
public CoherenceBasedCache<K,V> createCache(CoherenceBasedCacheManager manager, String sJCacheName) throws IllegalArgumentException
Description copied from interface:CoherenceBasedConfiguration
Creates aCoherenceBasedCache
based on the current state of theCoherenceBasedConfiguration
, to be owned by the specifiedCoherenceBasedCacheManager
.- Parameters:
manager
- the owningCoherenceBasedCacheManager
sJCacheName
- the name of theCache
to be configured- Returns:
- a
CoherenceBasedCache
- Throws:
IllegalArgumentException
- when aCache
can't be created based on the currentCoherenceBasedConfiguration
-
destroyCache
public void destroyCache(CoherenceBasedCacheManager manager, String sJcacheName)
Description copied from interface:CoherenceBasedConfiguration
Destroy aCoherenceBasedCache
implementation.- Parameters:
manager
- the owningCoherenceBasedCacheManager
sJcacheName
- the name of theCache
to be destroyed
-
-