public static class CachedSupplier.Builder<T>
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CachedSupplier.Builder<T> |
accessTimeout(Duration accessTimeout) |
CachedSupplier.Builder<T> |
accessTimeout(int time,
java.util.concurrent.TimeUnit unit) |
CachedSupplier<T> |
build() |
CachedSupplier.Builder<T> |
initialRetryDelay(Duration initialRetryDelay) |
CachedSupplier.Builder<T> |
initialRetryDelay(int time,
java.util.concurrent.TimeUnit unit) |
CachedSupplier.Builder<T> |
logger(Logger logger) |
CachedSupplier.Builder<T> |
maxRetryDelay(Duration maxRetryDelay) |
CachedSupplier.Builder<T> |
maxRetryDelay(int time,
java.util.concurrent.TimeUnit unit) |
CachedSupplier.Builder<T> |
refreshInterval(Duration refreshInterval) |
CachedSupplier.Builder<T> |
refreshInterval(int time,
java.util.concurrent.TimeUnit unit) |
CachedSupplier.Builder<T> |
supplier(java.util.function.Supplier<T> supplier) |
public CachedSupplier.Builder<T> initialRetryDelay(Duration initialRetryDelay)
public CachedSupplier.Builder<T> initialRetryDelay(int time, java.util.concurrent.TimeUnit unit)
public CachedSupplier.Builder<T> maxRetryDelay(Duration maxRetryDelay)
public CachedSupplier.Builder<T> maxRetryDelay(int time, java.util.concurrent.TimeUnit unit)
public CachedSupplier.Builder<T> accessTimeout(Duration accessTimeout)
public CachedSupplier.Builder<T> accessTimeout(int time, java.util.concurrent.TimeUnit unit)
public CachedSupplier.Builder<T> refreshInterval(Duration refreshInterval)
public CachedSupplier.Builder<T> refreshInterval(int time, java.util.concurrent.TimeUnit unit)
public CachedSupplier.Builder<T> supplier(java.util.function.Supplier<T> supplier)
public CachedSupplier.Builder<T> logger(Logger logger)
public CachedSupplier<T> build()