public static class CacheConfig.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
CacheConfig |
build() |
CacheConfig.Builder |
withBackOffDelay(Duration delay)
Sets the back-off delay used in caches.
|
CacheConfig.Builder |
withMinDelayBetweenRequests(Duration delay)
Sets the minimum time between two requests for caches.
|
CacheConfig.Builder |
withTimeoutAutoAdjustmentEnabled(boolean enabled)
Enable/Disable the automatic adjustment of read timeout
|
CacheConfig.Builder |
withTimeoutAutoAdjustmentMargin(Duration margin)
Sets the margin of the read timeout for caches.
|
public CacheConfig.Builder withBackOffDelay(Duration delay)
public CacheConfig.Builder withMinDelayBetweenRequests(Duration delay)
public CacheConfig.Builder withTimeoutAutoAdjustmentEnabled(boolean enabled)
public CacheConfig.Builder withTimeoutAutoAdjustmentMargin(Duration margin)
public CacheConfig build()
Copyright © 2018. All rights reserved.