Uses of Class
io.lettuce.core.resource.Delay
-
Packages that use Delay Package Description io.lettuce.core.protocol Redis protocol layer abstraction.io.lettuce.core.resource Client resource infrastructure providers. -
-
Uses of Delay in io.lettuce.core.protocol
Constructors in io.lettuce.core.protocol with parameters of type Delay Constructor Description ConnectionWatchdog(Delay reconnectDelay, ClientOptions clientOptions, Bootstrap bootstrap, Timer timer, EventExecutorGroup reconnectWorkers, Mono<SocketAddress> socketAddressSupplier, ReconnectionListener reconnectionListener, ConnectionFacade connectionFacade, EventBus eventBus, Endpoint endpoint)
Create a new watchdog that adds to new connections to the suppliedChannelGroup
and establishes a newChannel
when disconnected, while reconnect is true. -
Uses of Delay in io.lettuce.core.resource
Fields in io.lettuce.core.resource with type parameters of type Delay Modifier and Type Field Description static Supplier<Delay>
DefaultClientResources. DEFAULT_RECONNECT_DELAY
Default delaySupplier
forexponential()
delay.Methods in io.lettuce.core.resource that return Delay Modifier and Type Method Description static Delay
Delay. constant(int delay, TimeUnit timeUnit)
Deprecated.since 5.0, useconstant(Duration)
static Delay
Delay. constant(Duration delay)
Creates a newConstantDelay
.static Delay
Delay. equalJitter()
Creates a newEqualJitterDelay
with default boundaries.static Delay
Delay. equalJitter(long lower, long upper, long base, TimeUnit unit)
Creates a newEqualJitterDelay
.static Delay
Delay. equalJitter(Duration lower, Duration upper, long base, TimeUnit targetTimeUnit)
Creates a newEqualJitterDelay
.static Delay
Delay. exponential()
Creates a newExponentialDelay
with default boundaries and factor (1, 2, 4, 8, 16, 32...).static Delay
Delay. exponential(long lower, long upper, TimeUnit unit, int powersOf)
Creates a newExponentialDelay
on with custom boundaries and factor (eg.static Delay
Delay. exponential(Duration lower, Duration upper, int powersOf, TimeUnit targetTimeUnit)
Creates a newExponentialDelay
on with custom boundaries and factor (eg.static Delay
Delay. fullJitter()
Creates a newFullJitterDelay
with default boundaries.static Delay
Delay. fullJitter(long lower, long upper, long base, TimeUnit unit)
Creates a newFullJitterDelay
.static Delay
Delay. fullJitter(Duration lower, Duration upper, long base, TimeUnit targetTimeUnit)
Creates a newFullJitterDelay
.Delay
ClientResources. reconnectDelay()
Return theDelay
for reconnect attempts.Delay
DefaultClientResources. reconnectDelay()
Methods in io.lettuce.core.resource that return types with arguments of type Delay Modifier and Type Method Description static Supplier<Delay>
Delay. decorrelatedJitter()
Creates aSupplier
that constructs newDecorrelatedJitterDelay
instances with default boundaries.static Supplier<Delay>
Delay. decorrelatedJitter(long lower, long upper, long base, TimeUnit unit)
Creates aSupplier
that constructs newDecorrelatedJitterDelay
instances.static Supplier<Delay>
Delay. decorrelatedJitter(Duration lower, Duration upper, long base, TimeUnit targetTimeUnit)
Creates aSupplier
that constructs newDecorrelatedJitterDelay
instances.Methods in io.lettuce.core.resource with parameters of type Delay Modifier and Type Method Description ClientResources.Builder
ClientResources.Builder. reconnectDelay(Delay reconnectDelay)
Sets the stateless reconnectDelay
to delay reconnect attempts.DefaultClientResources.Builder
DefaultClientResources.Builder. reconnectDelay(Delay reconnectDelay)
Sets the stateless reconnectDelay
to delay reconnect attempts.Method parameters in io.lettuce.core.resource with type arguments of type Delay Modifier and Type Method Description ClientResources.Builder
ClientResources.Builder. reconnectDelay(Supplier<Delay> reconnectDelay)
Sets the stateful reconnectSupplier
to delay reconnect attempts.DefaultClientResources.Builder
DefaultClientResources.Builder. reconnectDelay(Supplier<Delay> reconnectDelay)
Sets the stateful reconnectSupplier
to delay reconnect attempts.
-