com.caucho.distcache.jcache
Class CacheBuilderImpl<K,V>

java.lang.Object
  extended by com.caucho.distcache.jcache.CacheBuilderImpl<K,V>
All Implemented Interfaces:
CacheBuilder<K,V>

public class CacheBuilderImpl<K,V>
extends java.lang.Object
implements CacheBuilder<K,V>

Caching Provider for jcache


Method Summary
 Cache<K,V> build()
           
 CacheBuilder<K,V> registerCacheEntryListener(CacheEntryListener<K,V> listener, Filter filter)
           
 CacheBuilder<K,V> setCacheLoader(CacheLoader<K,? extends V> cacheLoader)
           
 CacheBuilder<K,V> setCacheWriter(CacheWriter<? super K,? super V> cacheWriter)
           
 CacheBuilder<K,V> setExpiry(CacheConfiguration.ExpiryType type, CacheConfiguration.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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

build

public Cache<K,V> build()
Specified by:
build in interface CacheBuilder<K,V>

registerCacheEntryListener

public CacheBuilder<K,V> registerCacheEntryListener(CacheEntryListener<K,V> listener,
                                                    Filter filter)
Specified by:
registerCacheEntryListener in interface CacheBuilder<K,V>

setCacheLoader

public CacheBuilder<K,V> setCacheLoader(CacheLoader<K,? extends V> cacheLoader)
Specified by:
setCacheLoader in interface CacheBuilder<K,V>

setReadThrough

public CacheBuilder<K,V> setReadThrough(boolean readThrough)
Specified by:
setReadThrough in interface CacheBuilder<K,V>

setCacheWriter

public CacheBuilder<K,V> setCacheWriter(CacheWriter<? super K,? super V> cacheWriter)
Specified by:
setCacheWriter in interface CacheBuilder<K,V>

setWriteThrough

public CacheBuilder<K,V> setWriteThrough(boolean isWriteThrough)
Specified by:
setWriteThrough in interface CacheBuilder<K,V>

setExpiry

public CacheBuilder<K,V> setExpiry(CacheConfiguration.ExpiryType type,
                                   CacheConfiguration.Duration timeToLive)
Specified by:
setExpiry in interface CacheBuilder<K,V>

setStatisticsEnabled

public CacheBuilder<K,V> setStatisticsEnabled(boolean isEnable)
Specified by:
setStatisticsEnabled in interface CacheBuilder<K,V>

setStoreByValue

public CacheBuilder<K,V> setStoreByValue(boolean storeByValue)
Specified by:
setStoreByValue in interface CacheBuilder<K,V>

setTransactionEnabled

public CacheBuilder<K,V> setTransactionEnabled(IsolationLevel isolationLevel,
                                               Mode mode)
Specified by:
setTransactionEnabled in interface CacheBuilder<K,V>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object