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, writeExternal
public RemoteCacheConfiguration() throws Exception
RemoteCacheConfiguration
.Exception
- if an error occurspublic RemoteCacheConfiguration(javax.cache.configuration.CompleteConfiguration<K,V> configuration)
RemoteCacheConfiguration
based on a
CompleteConfiguration
.configuration
- the CompleteConfiguration
protected void validate()
RemoteCacheConfiguration
.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 sJcacheName)
CoherenceBasedConfiguration
CoherenceBasedCache
implementation.manager
- the owning CoherenceBasedCacheManager
sJcacheName
- the name of the Cache
to be destroyed