public class ClientOptions extends Object implements Serializable
RedisClient and RedisClusterClient.| Modifier and Type | Class and Description |
|---|---|
static class |
ClientOptions.Builder
Builder for
ClientOptions. |
| Modifier | Constructor and Description |
|---|---|
protected |
ClientOptions() |
| Modifier and Type | Method and Description |
|---|---|
static ClientOptions |
copyOf(ClientOptions options)
Create a copy of options
|
boolean |
isAutoReconnect()
Controls auto-reconnect behavior on connections.
|
boolean |
isCancelCommandsOnReconnectFailure()
If this flag is true any queued commands will be canceled when a reconnect fails within the activation
sequence.
|
boolean |
isPingBeforeActivateConnection()
Enables initial PING barrier before any connection is usable.
|
boolean |
isSuspendReconnectOnProtocolFailure()
If this flag is true the reconnect will be suspended on protocol errors.
|
public static ClientOptions copyOf(ClientOptions options)
options - ClientOptions containing the values of optionspublic boolean isPingBeforeActivateConnection()
public boolean isAutoReconnect()
public boolean isCancelCommandsOnReconnectFailure()
public boolean isSuspendReconnectOnProtocolFailure()
Copyright © 2015. All rights reserved.