| Package | Description |
|---|---|
| com.lambdaworks.redis.protocol |
Redis protocol layer abstraction.
|
| com.lambdaworks.redis.resource |
Client resource infrastructure providers.
|
| Constructor and Description |
|---|
ConnectionWatchdog(Delay reconnectDelay,
ClientOptions clientOptions,
Bootstrap bootstrap,
Timer timer,
EventExecutorGroup reconnectWorkers,
java.util.function.Supplier<SocketAddress> socketAddressSupplier,
ReconnectionListener reconnectionListener)
Create a new watchdog that adds to new connections to the supplied
ChannelGroup and establishes a new
Channel when disconnected, while reconnect is true. |
| Modifier and Type | Field and Description |
|---|---|
static Delay |
DefaultClientResources.DEFAULT_RECONNECT_DELAY |
| Modifier and Type | Method and Description |
|---|---|
static Delay |
Delay.constant(int delay,
TimeUnit timeUnit)
Creates a new
ConstantDelay. |
static Delay |
Delay.exponential()
Creates a new
ExponentialDelay 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 new
ExponentialDelay on with custom boundaries and factor (eg. with upper 9000, lower 0, powerOf 10: 1,
10, 100, 1000, 9000, 9000, 9000, ...). |
Delay |
DefaultClientResources.reconnectDelay() |
Delay |
ClientResources.reconnectDelay()
Returns the
Delay for reconnect attempts. |
| Modifier and Type | Method and Description |
|---|---|
DefaultClientResources.Builder |
DefaultClientResources.Builder.reconnectDelay(Delay reconnectDelay)
Sets the reconnect
Delay to delay reconnect attempts. |
Copyright © 2016. All rights reserved.