K - the type of keysV - the type of valuespublic class RemoteCacheConfiguration<K,V> extends AbstractCoherenceBasedCompleteConfiguration<K,V>
Configuration for a
Cache based on a Coherence <remote-scheme>,
or more specifically a 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 |
|---|
RemoteCacheConfiguration()
Constructs a default
RemoteCacheConfiguration. |
RemoteCacheConfiguration(javax.cache.configuration.CompleteConfiguration<K,V> configuration)
Constructs a
RemoteCacheConfiguration 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
RemoteCacheConfiguration. |
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 RemoteCacheConfiguration()
throws Exception
RemoteCacheConfiguration.Exception - if an error occurspublic RemoteCacheConfiguration(javax.cache.configuration.CompleteConfiguration<K,V> configuration)
RemoteCacheConfiguration based on a
CompleteConfiguration.configuration - the CompleteConfigurationprotected void validate()
RemoteCacheConfiguration.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