public class ClientOptions extends Object implements Serializable
RedisClient
.Modifier and Type | Class and Description |
---|---|
static class |
ClientOptions.Builder
Builder for
ClientOptions . |
Modifier | Constructor and Description |
---|---|
protected |
ClientOptions() |
protected |
ClientOptions(ClientOptions.Builder builder) |
protected |
ClientOptions(ClientOptions original) |
Modifier and Type | Method and Description |
---|---|
static ClientOptions |
copyOf(ClientOptions clientOptions)
Create a copy of options
|
int |
getRequestQueueSize()
Request queue size for a connection.
|
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.
|
protected ClientOptions(ClientOptions.Builder builder)
protected ClientOptions(ClientOptions original)
protected ClientOptions()
public static ClientOptions copyOf(ClientOptions clientOptions)
clientOptions
- source for copyClientOptions
containing the values of optionsIllegalArgumentException
- if clientOptions is nullpublic boolean isPingBeforeActivateConnection()
public boolean isAutoReconnect()
public boolean isCancelCommandsOnReconnectFailure()
public boolean isSuspendReconnectOnProtocolFailure()
public int getRequestQueueSize()
RedisException
if the queue size is exceeded and a new command is requested. Defaults to
Integer.MAX_VALUE
.Copyright © 2015. All rights reserved.