| 程序包 | 说明 |
|---|---|
| com.jn.langx.cache |
| 限定符和类型 | 方法和说明 |
|---|---|
CacheBuilder<K,V> |
CacheBuilder.cacheClass(Class cacheClass) |
CacheBuilder<K,V> |
CacheBuilder.capacityHeightWater(float capatityHeightWater) |
CacheBuilder<K,V> |
CacheBuilder.concurrencyLevel(int concurrencyLevel) |
CacheBuilder<K,V> |
CacheBuilder.evictExpiredInterval(long evictExpiredIntervalInMills) |
CacheBuilder<K,V> |
CacheBuilder.evictExpiredInterval(long evictExpiredIntervalInMills,
Timer timer)
Set the period of global evict, default : Long.MAX_VALUE
unit: mills
|
CacheBuilder<K,V> |
CacheBuilder.expireAfterRead(long expireAfterReadInSeconds) |
CacheBuilder<K,V> |
CacheBuilder.expireAfterWrite(long expireAfterWriteInSeconds) |
CacheBuilder<K,V> |
CacheBuilder.initialCapacity(int initialCapacity) |
CacheBuilder<K,V> |
CacheBuilder.loader(Loader<K,V> loader) |
CacheBuilder<K,V> |
CacheBuilder.maxCapacity(int maxCapacity) |
static <K,V> CacheBuilder<K,V> |
CacheBuilder.newBuilder() |
CacheBuilder<K,V> |
CacheBuilder.refreshAfterAccess(long refreshAfterAccess) |
CacheBuilder<K,V> |
CacheBuilder.removeListener(RemoveListener<K,V> removeListener) |
CacheBuilder<K,V> |
CacheBuilder.softKey(boolean softKey) |
CacheBuilder<K,V> |
CacheBuilder.softValue(boolean softValue) |
CacheBuilder<K,V> |
CacheBuilder.timer(Timer timer) |
CacheBuilder<K,V> |
CacheBuilder.weakKey(boolean weakKey) |
CacheBuilder<K,V> |
CacheBuilder.weakValue(boolean weakValue) |
Copyright © 2020. All rights reserved.