public class CacheConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheConfig.Builder |
static interface |
CacheConfig.RefreshErrorLogConsumer |
| Modifier and Type | Method and Description |
|---|---|
static CacheConfig.Builder |
builder()
Creates a new
CacheConfig.Builder object. |
Duration |
getMaximumBackOffDelay()
Gets the maximum back-off delay used in caches.
|
Duration |
getMinimumBackOffDelay()
Gets the minimum back-off delay used in caches.
|
Duration |
getMinimumDurationBetweenRequests()
Gets the minimum time between two requests for caches.
|
Duration |
getMinimumDurationDelayOnEmptyResult()
Gets the minimum time between two requests for caches.
|
CacheConfig.RefreshErrorLogConsumer |
getRefreshErrorLoggingConsumer()
Gets the function that will be called in case of error.
|
Duration |
getTimeoutAutoAdjustmentMargin()
Gets the margin of the read timeout for caches.
|
Duration |
getWatchDuration()
Gets the default watch duration for caches.
|
boolean |
isTimeoutAutoAdjustmentEnabled()
Is the automatic adjustment of read timeout enabled?
|
public Duration getWatchDuration()
public Duration getMinimumBackOffDelay()
public Duration getMaximumBackOffDelay()
public boolean isTimeoutAutoAdjustmentEnabled()
public Duration getTimeoutAutoAdjustmentMargin()
public Duration getMinimumDurationBetweenRequests()
public Duration getMinimumDurationDelayOnEmptyResult()
public CacheConfig.RefreshErrorLogConsumer getRefreshErrorLoggingConsumer()
public static CacheConfig.Builder builder()
CacheConfig.Builder object.Copyright © 2019. All rights reserved.