static <K,V> EvictableCache.Builder<K,V> |
EvictableCache.builder() |
Create a new builder for a cache.
|
EvictableCache.Builder<K,V> |
EvictableCache.Builder.cacheEnabled(boolean cacheEnabled) |
If the cacheEnabled is set to false, no caching will be done.
|
EvictableCache.Builder<K,V> |
EvictableCache.Builder.config(Config config) |
Update this builder from configuration.
|
EvictableCache.Builder<K,V> |
EvictableCache.Builder.evictor(BiFunction<K,V,Boolean> evictor) |
Configure evictor to check if a record is still valid.
|
EvictableCache.Builder<K,V> |
EvictableCache.Builder.evictSchedule(long evictDelay,
long evictPeriod,
TimeUnit evictTimeUnit) |
Configure eviction scheduling.
|
EvictableCache.Builder<K,V> |
EvictableCache.Builder.maxSize(long cacheMaxSize) |
Configure maximal cache size.
|
EvictableCache.Builder<K,V> |
EvictableCache.Builder.overallTimeout(long timeout,
TimeUnit timeoutUnit) |
Configure record timeout since its creation.
|
EvictableCache.Builder<K,V> |
EvictableCache.Builder.parallelismThreshold(long parallelismThreshold) |
Configure parallelism threshold.
|
EvictableCache.Builder<K,V> |
EvictableCache.Builder.timeout(long timeout,
TimeUnit timeoutUnit) |
Configure record timeout since last access.
|