public class MutableConfiguration<K,V> extends Object implements CompleteConfiguration<K,V>
Modifier and Type | Field and Description |
---|---|
protected Factory<CacheLoader<K,V>> |
cacheLoaderFactory |
protected Factory<CacheWriter<? super K,? super V>> |
cacheWriterFactory |
protected Factory<ExpiryPolicy> |
expiryPolicyFactory |
protected boolean |
isManagementEnabled |
protected boolean |
isReadThrough |
protected boolean |
isStatisticsEnabled |
protected boolean |
isStoreByValue |
protected boolean |
isWriteThrough |
protected Class<K> |
keyType |
protected HashSet<CacheEntryListenerConfiguration<K,V>> |
listenerConfigurations |
static long |
serialVersionUID |
protected Class<V> |
valueType |
Constructor and Description |
---|
MutableConfiguration() |
MutableConfiguration(CompleteConfiguration<K,V> configuration) |
public static final long serialVersionUID
protected HashSet<CacheEntryListenerConfiguration<K,V>> listenerConfigurations
protected Factory<CacheLoader<K,V>> cacheLoaderFactory
protected Factory<CacheWriter<? super K,? super V>> cacheWriterFactory
protected Factory<ExpiryPolicy> expiryPolicyFactory
protected boolean isReadThrough
protected boolean isWriteThrough
protected boolean isStatisticsEnabled
protected boolean isStoreByValue
protected boolean isManagementEnabled
public MutableConfiguration()
public MutableConfiguration(CompleteConfiguration<K,V> configuration)
public Class<K> getKeyType()
getKeyType
in interface Configuration<K,V>
public Class<V> getValueType()
getValueType
in interface Configuration<K,V>
public Iterable<CacheEntryListenerConfiguration<K,V>> getCacheEntryListenerConfigurations()
getCacheEntryListenerConfigurations
in interface CompleteConfiguration<K,V>
public MutableConfiguration<K,V> addCacheEntryListenerConfiguration(CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
public MutableConfiguration<K,V> removeCacheEntryListenerConfiguration(CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
public Factory<CacheLoader<K,V>> getCacheLoaderFactory()
getCacheLoaderFactory
in interface CompleteConfiguration<K,V>
public MutableConfiguration<K,V> setCacheLoaderFactory(Factory<? extends CacheLoader<K,V>> factory)
public Factory<CacheWriter<? super K,? super V>> getCacheWriterFactory()
getCacheWriterFactory
in interface CompleteConfiguration<K,V>
public MutableConfiguration<K,V> setCacheWriterFactory(Factory<? extends CacheWriter<? super K,? super V>> factory)
public Factory<ExpiryPolicy> getExpiryPolicyFactory()
getExpiryPolicyFactory
in interface CompleteConfiguration<K,V>
public MutableConfiguration<K,V> setExpiryPolicyFactory(Factory<? extends ExpiryPolicy> factory)
public boolean isReadThrough()
isReadThrough
in interface CompleteConfiguration<K,V>
public MutableConfiguration<K,V> setReadThrough(boolean isReadThrough)
public boolean isWriteThrough()
isWriteThrough
in interface CompleteConfiguration<K,V>
public MutableConfiguration<K,V> setWriteThrough(boolean isWriteThrough)
public boolean isStoreByValue()
isStoreByValue
in interface Configuration<K,V>
public MutableConfiguration<K,V> setStoreByValue(boolean isStoreByValue)
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface CompleteConfiguration<K,V>
public MutableConfiguration<K,V> setStatisticsEnabled(boolean enabled)
public boolean isManagementEnabled()
isManagementEnabled
in interface CompleteConfiguration<K,V>
public MutableConfiguration<K,V> setManagementEnabled(boolean enabled)
Copyright © 2017. All rights reserved.