public class ClusterClientOptions extends ClientOptions
RedisClusterClient
.Modifier and Type | Class and Description |
---|---|
static class |
ClusterClientOptions.Builder
Builder for
ClusterClientOptions . |
Modifier | Constructor and Description |
---|---|
protected |
ClusterClientOptions() |
protected |
ClusterClientOptions(ClusterClientOptions.Builder builder) |
protected |
ClusterClientOptions(ClusterClientOptions original) |
Modifier and Type | Method and Description |
---|---|
static ClusterClientOptions |
copyOf(ClusterClientOptions options)
Create a copy of options.
|
long |
getRefreshPeriod()
Period between the regular cluster topology updates.
|
TimeUnit |
getRefreshPeriodUnit()
Unit for the
getRefreshPeriod() . |
boolean |
isCloseStaleConnections()
Flag, whether to close stale connections when refreshing the cluster topology.
|
boolean |
isRefreshClusterView()
Flag, whether regular cluster topology updates are updated.
|
boolean |
isValidateClusterNodeMembership()
Validate the cluster node membership before allowing connections to a cluster node.
|
copyOf, getRequestQueueSize, isAutoReconnect, isCancelCommandsOnReconnectFailure, isPingBeforeActivateConnection, isSuspendReconnectOnProtocolFailure
protected ClusterClientOptions(ClusterClientOptions.Builder builder)
protected ClusterClientOptions(ClusterClientOptions original)
protected ClusterClientOptions()
public static ClusterClientOptions copyOf(ClusterClientOptions options)
options
- the originalClusterClientOptions
containing the values of optionspublic boolean isRefreshClusterView()
getRefreshPeriod()
/getRefreshPeriodUnit()
. Defaults to false.public long getRefreshPeriod()
public TimeUnit getRefreshPeriodUnit()
getRefreshPeriod()
. Defaults to TimeUnit.SECONDS
.getRefreshPeriod()
public boolean isCloseStaleConnections()
isRefreshClusterView()
is true.public boolean isValidateClusterNodeMembership()
Copyright © 2015. All rights reserved.