Uses of Class
io.lettuce.core.resource.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 suppliedChannelGroupand establishes a newChannelwhen 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_DELAYDefault delaySupplierforexponential()delay.Methods in io.lettuce.core.resource that return Delay Modifier and Type Method Description static DelayDelay. constant(int delay, TimeUnit timeUnit)Deprecated.static DelayDelay. constant(Duration delay)Creates a newConstantDelay.static DelayDelay. equalJitter()Creates a newEqualJitterDelaywith default boundaries.static DelayDelay. equalJitter(long lower, long upper, long base, TimeUnit unit)Creates a newEqualJitterDelay.static DelayDelay. equalJitter(Duration lower, Duration upper, long base, TimeUnit targetTimeUnit)Creates a newEqualJitterDelay.static DelayDelay. exponential()Creates a newExponentialDelaywith default boundaries and factor (1, 2, 4, 8, 16, 32...).static DelayDelay. exponential(long lower, long upper, TimeUnit unit, int powersOf)Creates a newExponentialDelayon with custom boundaries and factor (eg.static DelayDelay. exponential(Duration lower, Duration upper, int powersOf, TimeUnit targetTimeUnit)Creates a newExponentialDelayon with custom boundaries and factor (eg.static DelayDelay. fullJitter()Creates a newFullJitterDelaywith default boundaries.static DelayDelay. fullJitter(long lower, long upper, long base, TimeUnit unit)Creates a newFullJitterDelay.static DelayDelay. fullJitter(Duration lower, Duration upper, long base, TimeUnit targetTimeUnit)Creates a newFullJitterDelay.DelayClientResources. reconnectDelay()Return theDelayfor reconnect attempts.DelayDefaultClientResources. 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 aSupplierthat constructs newDecorrelatedJitterDelayinstances with default boundaries.static Supplier<Delay>Delay. decorrelatedJitter(long lower, long upper, long base, TimeUnit unit)Creates aSupplierthat constructs newDecorrelatedJitterDelayinstances.static Supplier<Delay>Delay. decorrelatedJitter(Duration lower, Duration upper, long base, TimeUnit targetTimeUnit)Creates aSupplierthat constructs newDecorrelatedJitterDelayinstances.Methods in io.lettuce.core.resource with parameters of type Delay Modifier and Type Method Description ClientResources.BuilderClientResources.Builder. reconnectDelay(Delay reconnectDelay)Sets the stateless reconnectDelayto delay reconnect attempts.DefaultClientResources.BuilderDefaultClientResources.Builder. reconnectDelay(Delay reconnectDelay)Sets the stateless reconnectDelayto delay reconnect attempts.Method parameters in io.lettuce.core.resource with type arguments of type Delay Modifier and Type Method Description ClientResources.BuilderClientResources.Builder. reconnectDelay(Supplier<Delay> reconnectDelay)Sets the stateful reconnectSupplierto delay reconnect attempts.DefaultClientResources.BuilderDefaultClientResources.Builder. reconnectDelay(Supplier<Delay> reconnectDelay)Sets the stateful reconnectSupplierto delay reconnect attempts.
constant(Duration)