Class RemoteCacheConfiguration<K,V>
java.lang.Object
com.tangosol.coherence.jcache.AbstractCoherenceBasedCompleteConfiguration<K,V>
com.tangosol.coherence.jcache.remotecache.RemoteCacheConfiguration<K,V>
- Type Parameters:
K- the type of keysV- the type of 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>
A
Configuration for a
Cache based on a Coherence <remote-scheme>,
or more specifically a NamedCache.- Since:
- Coherence 12.2.1
- Author:
- jf 2014.05.22
- See Also:
-
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
ConstructorsConstructorDescriptionConstructs a defaultRemoteCacheConfiguration.RemoteCacheConfiguration(javax.cache.configuration.CompleteConfiguration<K, V> configuration) Constructs aRemoteCacheConfigurationbased on aCompleteConfiguration. -
Method Summary
Modifier and TypeMethodDescriptioncreateCache(CoherenceBasedCacheManager manager, String sJCacheName) Creates aCoherenceBasedCachebased on the current state of theCoherenceBasedConfiguration, to be owned by the specifiedCoherenceBasedCacheManager.voiddestroyCache(CoherenceBasedCacheManager manager, String sJcacheName) Destroy aCoherenceBasedCacheimplementation.protected voidvalidate()Validates theRemoteCacheConfiguration.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 Details
-
RemoteCacheConfiguration
Constructs a defaultRemoteCacheConfiguration.- Throws:
Exception- if an error occurs
-
RemoteCacheConfiguration
Constructs aRemoteCacheConfigurationbased on aCompleteConfiguration.- Parameters:
configuration- theCompleteConfiguration
-
-
Method Details
-
validate
protected void validate()Validates theRemoteCacheConfiguration. -
createCache
public CoherenceBasedCache<K,V> createCache(CoherenceBasedCacheManager manager, String sJCacheName) throws IllegalArgumentException Description copied from interface:CoherenceBasedConfigurationCreates aCoherenceBasedCachebased on the current state of theCoherenceBasedConfiguration, to be owned by the specifiedCoherenceBasedCacheManager.- Parameters:
manager- the owningCoherenceBasedCacheManagersJCacheName- the name of theCacheto be configured- Returns:
- a
CoherenceBasedCache - Throws:
IllegalArgumentException- when aCachecan't be created based on the currentCoherenceBasedConfiguration
-
destroyCache
Description copied from interface:CoherenceBasedConfigurationDestroy aCoherenceBasedCacheimplementation.- Parameters:
manager- the owningCoherenceBasedCacheManagersJcacheName- the name of theCacheto be destroyed
-