K
- the type of keysV
- the type of valuespublic class LocalCacheConfiguration<K,V> extends AbstractCoherenceBasedCompleteConfiguration<K,V>
Configuration
for a
Cache
based on a Coherence <local-scheme>,
or more specifically an in-process 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 |
---|
LocalCacheConfiguration()
Constructs a default
LocalCacheConfiguration . |
LocalCacheConfiguration(javax.cache.configuration.CompleteConfiguration<K,V> configuration)
Constructs a
LocalCacheConfiguration 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 name)
Destroy a
CoherenceBasedCache implementation. |
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
public LocalCacheConfiguration()
LocalCacheConfiguration
.public LocalCacheConfiguration(javax.cache.configuration.CompleteConfiguration<K,V> configuration)
LocalCacheConfiguration
based on a
CompleteConfiguration
.configuration
- the CompleteConfiguration
public CoherenceBasedCache<K,V> createCache(CoherenceBasedCacheManager manager, String sJCacheName) throws IllegalArgumentException
CoherenceBasedConfiguration
CoherenceBasedCache
based on the current state of
the CoherenceBasedConfiguration
, to be owned by
the specified CoherenceBasedCacheManager
.manager
- the owning CoherenceBasedCacheManager
sJCacheName
- the name of the Cache
to be configuredCoherenceBasedCache
IllegalArgumentException
- when a Cache
can't be created
based on the current CoherenceBasedConfiguration
public void destroyCache(CoherenceBasedCacheManager manager, String name)
CoherenceBasedConfiguration
CoherenceBasedCache
implementation.manager
- the owning CoherenceBasedCacheManager
name
- the name of the Cache
to be destroyed