K - the type of the keysV - the type of the valuespublic class PartitionedCacheConfiguration<K,V> extends AbstractCoherenceBasedCompleteConfiguration<K,V>
Configuration for a
Cache based on a Coherence <distributed-scheme>
or more specifically a partitioned (aka: distributed)
NamedCache.m_clzKey, m_clzValue, m_factoryCacheLoader, m_factoryCacheWriter, m_factoryExpiryPolicy, m_fManagementEnabled, m_fReadThrough, m_fStatisticsEnabled, m_fStoreByValue, m_fWriteThrough, m_listListenerConfigurations| Constructor and Description |
|---|
PartitionedCacheConfiguration()
Constructs a default
PartitionedCacheConfiguration. |
PartitionedCacheConfiguration(javax.cache.configuration.CompleteConfiguration<K,V> configuration)
Constructs a
PartitionedCacheConfiguration based on a
CompleteConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
CoherenceBasedCache<K,V> |
createCache(CoherenceBasedCacheManager manager,
String sJCacheName)
Creates a
CoherenceBasedCache based on the current state of
the CoherenceBasedConfiguration, to be owned by
the specified CoherenceBasedCacheManager. |
void |
destroyCache(CoherenceBasedCacheManager manager,
String sJcacheName)
Destroy a
CoherenceBasedCache implementation. |
protected void |
validate()
Validates the
PartitionedCacheConfiguration. |
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, writeExternalpublic PartitionedCacheConfiguration()
PartitionedCacheConfiguration.public PartitionedCacheConfiguration(javax.cache.configuration.CompleteConfiguration<K,V> configuration)
PartitionedCacheConfiguration based on a
CompleteConfiguration.configuration - the CompleteConfigurationprotected void validate()
PartitionedCacheConfiguration.public CoherenceBasedCache<K,V> createCache(CoherenceBasedCacheManager manager, String sJCacheName) throws IllegalArgumentException
CoherenceBasedConfigurationCoherenceBasedCache based on the current state of
the CoherenceBasedConfiguration, to be owned by
the specified CoherenceBasedCacheManager.manager - the owning CoherenceBasedCacheManagersJCacheName - the name of the Cache to be configuredCoherenceBasedCacheIllegalArgumentException - when a Cache can't be created
based on the current CoherenceBasedConfigurationpublic void destroyCache(CoherenceBasedCacheManager manager, String sJcacheName)
CoherenceBasedConfigurationCoherenceBasedCache implementation.manager - the owning CoherenceBasedCacheManagersJcacheName - the name of the Cache to be destroyed