static CacheConfig.Builder |
CacheConfig.builder() |
|
CacheConfig.Builder |
CacheConfig.Builder.withBackOffDelay(java.time.Duration delay) |
Sets the back-off delay used in caches.
|
CacheConfig.Builder |
CacheConfig.Builder.withBackOffDelay(java.time.Duration minDelay,
java.time.Duration maxDelay) |
Sets a random delay between the minDelay and maxDelay (inclusive) to occur between retries.
|
CacheConfig.Builder |
CacheConfig.Builder.withMinDelayBetweenRequests(java.time.Duration delay) |
Sets the minimum time between two requests for caches.
|
CacheConfig.Builder |
CacheConfig.Builder.withMinDelayOnEmptyResult(java.time.Duration delay) |
Sets the minimum time between two requests for caches when an empty result is returned.
|
CacheConfig.Builder |
CacheConfig.Builder.withRefreshErrorLoggedAs(CacheConfig.RefreshErrorLogConsumer fn) |
Log refresh errors using custom function
|
CacheConfig.Builder |
CacheConfig.Builder.withRefreshErrorLoggedAsError() |
Log refresh errors as error
|
CacheConfig.Builder |
CacheConfig.Builder.withRefreshErrorLoggedAsWarning() |
Log refresh errors as warning
|
CacheConfig.Builder |
CacheConfig.Builder.withTimeoutAutoAdjustmentEnabled(boolean enabled) |
Enable/Disable the automatic adjustment of read timeout
|
CacheConfig.Builder |
CacheConfig.Builder.withTimeoutAutoAdjustmentMargin(java.time.Duration margin) |
Sets the margin of the read timeout for caches.
|