类 CacheConfig<K,V>

java.lang.Object
com.alicp.jetcache.CacheConfig<K,V>
所有已实现的接口:
Cloneable
直接已知子类:
EmbeddedCacheConfig, ExternalCacheConfig, MultiLevelCacheConfig

public class CacheConfig<K,V> extends Object implements Cloneable
Created on 16/9/7.
作者:
huangli
  • 构造器详细资料

    • CacheConfig

      public CacheConfig()
  • 方法详细资料

    • clone

      public CacheConfig clone()
    • getKeyConvertor

      public Function<K,Object> getKeyConvertor()
    • setKeyConvertor

      public void setKeyConvertor(Function<K,Object> keyConvertor)
    • isExpireAfterAccess

      public boolean isExpireAfterAccess()
    • isExpireAfterWrite

      public boolean isExpireAfterWrite()
    • getDefaultExpireInMillis

      @Deprecated public long getDefaultExpireInMillis()
      已过时。
    • setDefaultExpireInMillis

      @Deprecated public void setDefaultExpireInMillis(long defaultExpireInMillis)
      已过时。
    • getExpireAfterWriteInMillis

      public long getExpireAfterWriteInMillis()
    • setExpireAfterWriteInMillis

      public void setExpireAfterWriteInMillis(long expireAfterWriteInMillis)
    • getExpireAfterAccessInMillis

      public long getExpireAfterAccessInMillis()
    • setExpireAfterAccessInMillis

      public void setExpireAfterAccessInMillis(long expireAfterAccessInMillis)
    • getLoader

      public CacheLoader<K,V> getLoader()
    • setLoader

      public void setLoader(CacheLoader<K,V> loader)
    • isCacheNullValue

      public boolean isCacheNullValue()
    • setCacheNullValue

      public void setCacheNullValue(boolean cacheNullValue)
    • getMonitors

      public List<CacheMonitor> getMonitors()
    • setMonitors

      public void setMonitors(List<CacheMonitor> monitors)
    • getRefreshPolicy

      public RefreshPolicy getRefreshPolicy()
    • setRefreshPolicy

      public void setRefreshPolicy(RefreshPolicy refreshPolicy)
    • getTryLockUnlockCount

      public int getTryLockUnlockCount()
    • setTryLockUnlockCount

      public void setTryLockUnlockCount(int tryLockUnlockCount)
    • getTryLockInquiryCount

      public int getTryLockInquiryCount()
    • setTryLockInquiryCount

      public void setTryLockInquiryCount(int tryLockInquiryCount)
    • getTryLockLockCount

      public int getTryLockLockCount()
    • setTryLockLockCount

      public void setTryLockLockCount(int tryLockLockCount)
    • isCachePenetrationProtect

      public boolean isCachePenetrationProtect()
    • setCachePenetrationProtect

      public void setCachePenetrationProtect(boolean cachePenetrationProtect)
    • getPenetrationProtectTimeout

      public Duration getPenetrationProtectTimeout()
    • setPenetrationProtectTimeout

      public void setPenetrationProtectTimeout(Duration penetrationProtectTimeout)