public class MutableConfiguration<K,V> extends java.lang.Object implements Configuration<K,V>
Configuration.Duration, Configuration.ExpiryType
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<CacheEntryListenerRegistration<? super K,? super V>> |
cacheEntryListenerRegistrations |
protected CacheLoader<K,? extends V> |
cacheLoader |
protected CacheWriter<? super K,? super V> |
cacheWriter |
protected ExpiryPolicy<? super K,? super V> |
expiryPolicy |
protected boolean |
isReadThrough |
protected boolean |
isStatisticsEnabled |
protected boolean |
isStoreByValue |
protected boolean |
isTransactionsEnabled |
protected boolean |
isWriteThrough |
protected IsolationLevel |
txnIsolationLevel |
protected Mode |
txnMode |
Constructor and Description |
---|
MutableConfiguration() |
MutableConfiguration(Configuration<K,V> cfg) |
MutableConfiguration(java.lang.Iterable<CacheEntryListenerRegistration<? super K,? super V>> regs,
CacheLoader<K,? extends V> cacheLoader,
CacheWriter<? super K,? super V> cacheWriter,
ExpiryPolicy<? super K,? super V> expiryPolicy,
boolean isReadThrough,
boolean isWriteThrough,
boolean isStatisticsEnabled,
boolean isStoreByValue,
boolean isTransactionsEnabled,
IsolationLevel txnIsolationLevel,
Mode txnMode) |
protected java.util.ArrayList<CacheEntryListenerRegistration<? super K,? super V>> cacheEntryListenerRegistrations
protected CacheLoader<K,? extends V> cacheLoader
protected CacheWriter<? super K,? super V> cacheWriter
protected ExpiryPolicy<? super K,? super V> expiryPolicy
protected boolean isReadThrough
protected boolean isWriteThrough
protected boolean isStatisticsEnabled
protected boolean isStoreByValue
protected boolean isTransactionsEnabled
protected IsolationLevel txnIsolationLevel
protected Mode txnMode
public MutableConfiguration()
public MutableConfiguration(java.lang.Iterable<CacheEntryListenerRegistration<? super K,? super V>> regs, CacheLoader<K,? extends V> cacheLoader, CacheWriter<? super K,? super V> cacheWriter, ExpiryPolicy<? super K,? super V> expiryPolicy, boolean isReadThrough, boolean isWriteThrough, boolean isStatisticsEnabled, boolean isStoreByValue, boolean isTransactionsEnabled, IsolationLevel txnIsolationLevel, Mode txnMode)
public MutableConfiguration(Configuration<K,V> cfg)
public boolean isReadThrough()
isReadThrough
in interface Configuration<K,V>
public MutableConfiguration<K,V> setReadThrough(boolean isReadThrough)
public boolean isWriteThrough()
isWriteThrough
in interface Configuration<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 Configuration<K,V>
public MutableConfiguration<K,V> setStatisticsEnabled(boolean isEnabled)
public boolean isTransactionsEnabled()
isTransactionsEnabled
in interface Configuration<K,V>
public MutableConfiguration<K,V> setTransactionsEnabled(boolean isEnabled)
public IsolationLevel getTransactionIsolationLevel()
getTransactionIsolationLevel
in interface Configuration<K,V>
public MutableConfiguration<K,V> setTransactions(IsolationLevel level, Mode mode)
public Mode getTransactionMode()
getTransactionMode
in interface Configuration<K,V>
public java.lang.Iterable<CacheEntryListenerRegistration<? super K,? super V>> getCacheEntryListenerRegistrations()
getCacheEntryListenerRegistrations
in interface Configuration<K,V>
public MutableConfiguration<K,V> registerCacheEntryListener(CacheEntryListener<? super K,? super V> listener, boolean requireOldValue, CacheEntryEventFilter<? super K,? super V> filter, boolean synchronous)
public CacheLoader<K,? extends V> getCacheLoader()
getCacheLoader
in interface Configuration<K,V>
public MutableConfiguration<K,V> setCacheLoader(CacheLoader<K,? extends V> loader)
public CacheWriter<? super K,? super V> getCacheWriter()
getCacheWriter
in interface Configuration<K,V>
public MutableConfiguration<K,V> setCacheWriter(CacheWriter<? super K,? super V> writer)
public ExpiryPolicy<? super K,? super V> getExpiryPolicy()
getExpiryPolicy
in interface Configuration<K,V>
public MutableConfiguration<K,V> setExpiryPolicy(ExpiryPolicy<? super K,? super V> policy)