public interface CacheBuilder<K,V>
com.caucho.cluster.CacheTemplate
for additional methods.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 writeThrough) |
CacheBuilder<K,V> setCacheLoader(CacheLoader<K,? extends V> cacheLoader)
CacheBuilder<K,V> setCacheWriter(CacheWriter<? super K,? super V> cacheWriter)
CacheBuilder<K,V> registerCacheEntryListener(CacheEntryListener<K,V> listener)
CacheBuilder<K,V> setStoreByValue(boolean storeByValue)
CacheBuilder<K,V> setTransactionEnabled(IsolationLevel isolationLevel, Mode mode)
CacheBuilder<K,V> setStatisticsEnabled(boolean isEnable)
CacheBuilder<K,V> setReadThrough(boolean readThrough)
CacheBuilder<K,V> setWriteThrough(boolean writeThrough)
CacheBuilder<K,V> setExpiry(Configuration.ExpiryType type, Configuration.Duration timeToLive)