K - the type of the keysV - the type of the valuespublic interface CoherenceBasedCompleteConfiguration<K,V> extends javax.cache.configuration.CompleteConfiguration<K,V>, CoherenceBasedConfiguration<K,V>
CompleteConfiguration that provides
setter methods.
CoherenceBasedCaches that use this configuration must be JCache compliant as
JCache Caches that use CompleteConfigurations are compliant.
| Modifier and Type | Method and Description |
|---|---|
void |
addCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cfgListener)
Add a configuration for a
CacheEntryListener. |
void |
setCacheLoaderFactory(javax.cache.configuration.Factory<? extends javax.cache.integration.CacheLoader<K,V>> factory)
Set the
CacheLoader factory. |
void |
setCacheWriterFactory(javax.cache.configuration.Factory<? extends javax.cache.integration.CacheWriter<? super K,? super V>> factory)
Set the
CacheWriter factory. |
void |
setExpiryPolicyFactory(javax.cache.configuration.Factory<? extends javax.cache.expiry.ExpiryPolicy> factory)
Set the
Factory for the ExpiryPolicy. |
void |
setManagementEnabled(boolean fManagementEnabled)
Set if JMX management is enabled for a configuration.
|
void |
setReadThrough(boolean fReadThrough)
Set if read-through caching should be used.
|
void |
setStatisticsEnabled(boolean fStatisticsEnabled)
Set if statistics gathering is enabled for a configuration.
|
void |
setStoreByValue(boolean fStoreByValue)
Set if a configured cache should use store-by-value or store-by-reference
semantics.
|
void |
setTypes(Class<K> clzKey,
Class<V> clzValue)
Sets the expected type of keys and values for a
CoherenceBasedCache. |
void |
setWriteThrough(boolean fWriteThrough)
Set if write-through caching should be used.
|
getCacheEntryListenerConfigurations, getCacheLoaderFactory, getCacheWriterFactory, getExpiryPolicyFactory, isManagementEnabled, isReadThrough, isStatisticsEnabled, isWriteThroughcreateCache, destroyCachevoid setTypes(Class<K> clzKey, Class<V> clzValue)
CoherenceBasedCache.
Setting both to Object.class means type-safety checks are not required.
clzKey - the expected key typeclzValue - the expected value typeNullPointerException - should the key or value type be nullvoid addCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cfgListener)
CacheEntryListener.cfgListener - the CacheEntryListenerConfigurationIllegalArgumentException - if the same CacheEntryListenerConfiguration
is used more than oncevoid setCacheLoaderFactory(javax.cache.configuration.Factory<? extends javax.cache.integration.CacheLoader<K,V>> factory)
CacheLoader factory.factory - the CacheLoader Factoryvoid setCacheWriterFactory(javax.cache.configuration.Factory<? extends javax.cache.integration.CacheWriter<? super K,? super V>> factory)
CacheWriter factory.factory - the CacheWriter Factoryvoid setExpiryPolicyFactory(javax.cache.configuration.Factory<? extends javax.cache.expiry.ExpiryPolicy> factory)
Factory for the ExpiryPolicy.
If null is specified the default ExpiryPolicy is used.
factory - the ExpiryPolicy Factoryvoid setReadThrough(boolean fReadThrough)
It is an invalid configuration to set this to true without specifying a
CacheLoader Factory.
fReadThrough - true if read-through is requiredvoid setWriteThrough(boolean fWriteThrough)
It is an invalid configuration to set this to true without specifying a
CacheWriter Factory.
fWriteThrough - true if write-through is requiredvoid setStoreByValue(boolean fStoreByValue)
fStoreByValue - true for store-by-value semantics,
false for store-by-reference semanticsvoid setStatisticsEnabled(boolean fStatisticsEnabled)
Statistics may be enabled or disabled at runtime via
CacheManager.enableStatistics(String, boolean).
fStatisticsEnabled - true to enable statistics gathering,
false to disablevoid setManagementEnabled(boolean fManagementEnabled)
Management may be enabled or disabled at runtime via
CacheManager.enableManagement(String, boolean).
fManagementEnabled - true to enable statistics,
false to disable