public static class CacheConfiguration.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CacheConfiguration |
build() |
CacheConfiguration.Builder |
setEvictBatchSize(int evictBatchSize) |
CacheConfiguration.Builder |
setHighWaterMark(int highWaterMark) |
CacheConfiguration.Builder |
setLowWaterMark(int lowWaterMark) |
CacheConfiguration.Builder |
setMaxSize(int maxSize) |
public CacheConfiguration.Builder setMaxSize(int maxSize)
maxSize
- the target max cache sizepublic CacheConfiguration.Builder setHighWaterMark(int highWaterMark)
highWaterMark
- the high water mark where the cache should begin evictingpublic CacheConfiguration.Builder setLowWaterMark(int lowWaterMark)
lowWaterMark
- the low water mark where the cache should evict down topublic CacheConfiguration.Builder setEvictBatchSize(int evictBatchSize)
evictBatchSize
- the batch size for cache evictionpublic CacheConfiguration build()
Copyright © 2023. All Rights Reserved.