| Package | Description |
|---|---|
| com.orbitz.consul.config |
| Modifier and Type | Method and Description |
|---|---|
static CacheConfig.Builder |
CacheConfig.builder()
Creates a new
CacheConfig.Builder object. |
CacheConfig.Builder |
CacheConfig.Builder.withBackOffDelay(Duration delay)
Sets the back-off delay used in caches.
|
CacheConfig.Builder |
CacheConfig.Builder.withBackOffDelay(Duration minDelay,
Duration maxDelay)
Sets a random delay between the
minDelay and maxDelay (inclusive) to occur between retries. |
CacheConfig.Builder |
CacheConfig.Builder.withMinDelayBetweenRequests(Duration delay)
Sets the minimum time between two requests for caches.
|
CacheConfig.Builder |
CacheConfig.Builder.withMinDelayOnEmptyResult(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(Duration margin)
Sets the margin of the read timeout for caches.
|
Copyright © 2019. All rights reserved.