Uses of Class
org.kiwiproject.consul.config.CacheConfig.Builder
Packages that use CacheConfig.Builder
-
Uses of CacheConfig.Builder in org.kiwiproject.consul.config
Methods in org.kiwiproject.consul.config that return CacheConfig.BuilderModifier and TypeMethodDescriptionstatic CacheConfig.BuilderCacheConfig.builder()Creates a newCacheConfig.Builderobject.CacheConfig.Builder.withBackOffDelay(Duration delay) Sets the back-off delay used in caches.CacheConfig.Builder.withBackOffDelay(Duration minDelay, Duration maxDelay) Sets a random delay between theminDelayandmaxDelay(inclusive) to occur between retries.CacheConfig.Builder.withMinDelayBetweenRequests(Duration delay) Sets the minimum time between two requests for caches.CacheConfig.Builder.withMinDelayOnEmptyResult(Duration delay) Sets the minimum time between two requests for caches when an empty result is returned.CacheConfig.Builder.withRefreshErrorLoggedAs(CacheConfig.RefreshErrorLogConsumer fn) Log refresh errors using custom functionCacheConfig.Builder.withRefreshErrorLoggedAsError()Log refresh errors as errorCacheConfig.Builder.withRefreshErrorLoggedAsWarning()Log refresh errors as warningCacheConfig.Builder.withTimeoutAutoAdjustmentEnabled(boolean enabled) Enable/Disable the automatic adjustment of read timeoutCacheConfig.Builder.withTimeoutAutoAdjustmentMargin(Duration margin) Sets the margin of the read timeout for caches.CacheConfig.Builder.withWatchDuration(Duration delay) Sets the watch duration used in caches.