public class CacheBuilderImpl<K,V> extends java.lang.Object implements CacheBuilder<K,V>
Modifier and Type | Method and Description |
---|---|
Cache<K,V> |
build() |
CacheBuilder<K,V> |
registerCacheEntryListener(CacheEntryListener<K,V> listener) |
CacheBuilder<K,V> |
setCacheLoader(CacheLoader<K,? extends V> cacheLoader) |
CacheBuilder<K,V> |
setCacheWriter(CacheWriter<? super K,? super V> cacheWriter) |
CacheBuilder<K,V> |
setExpiry(Configuration.ExpiryType type,
Configuration.Duration timeToLive) |
CacheBuilder<K,V> |
setReadThrough(boolean readThrough) |
CacheBuilder<K,V> |
setStatisticsEnabled(boolean isEnable) |
CacheBuilder<K,V> |
setStoreByValue(boolean storeByValue) |
CacheBuilder<K,V> |
setTransactionEnabled(IsolationLevel isolationLevel,
Mode mode) |
CacheBuilder<K,V> |
setWriteThrough(boolean isWriteThrough) |
java.lang.String |
toString() |
public CacheBuilder<K,V> registerCacheEntryListener(CacheEntryListener<K,V> listener)
registerCacheEntryListener
in interface CacheBuilder<K,V>
public CacheBuilder<K,V> setCacheLoader(CacheLoader<K,? extends V> cacheLoader)
setCacheLoader
in interface CacheBuilder<K,V>
public CacheBuilder<K,V> setReadThrough(boolean readThrough)
setReadThrough
in interface CacheBuilder<K,V>
public CacheBuilder<K,V> setCacheWriter(CacheWriter<? super K,? super V> cacheWriter)
setCacheWriter
in interface CacheBuilder<K,V>
public CacheBuilder<K,V> setWriteThrough(boolean isWriteThrough)
setWriteThrough
in interface CacheBuilder<K,V>
public CacheBuilder<K,V> setExpiry(Configuration.ExpiryType type, Configuration.Duration timeToLive)
setExpiry
in interface CacheBuilder<K,V>
public CacheBuilder<K,V> setStatisticsEnabled(boolean isEnable)
setStatisticsEnabled
in interface CacheBuilder<K,V>
public CacheBuilder<K,V> setStoreByValue(boolean storeByValue)
setStoreByValue
in interface CacheBuilder<K,V>
public CacheBuilder<K,V> setTransactionEnabled(IsolationLevel isolationLevel, Mode mode)
setTransactionEnabled
in interface CacheBuilder<K,V>
public java.lang.String toString()
toString
in class java.lang.Object