public static enum RedisReplicaInstance.State extends Enum<RedisReplicaInstance.State>
Enum Constant and Description |
---|
CONNECT
the instance needs to connect to its master.
|
CONNECTED
the replica is online.
|
CONNECTING
the replica-master connection is in progress.
|
HANDSHAKE
the instance is in the handshake state.
|
NONE
Nothing to replicate.
|
SYNC
the master and replica are trying to perform the synchronization.
|
UNKNOWN
unknown state.
|
Modifier and Type | Method and Description |
---|---|
static RedisReplicaInstance.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedisReplicaInstance.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedisReplicaInstance.State NONE
public static final RedisReplicaInstance.State UNKNOWN
public static final RedisReplicaInstance.State HANDSHAKE
public static final RedisReplicaInstance.State CONNECT
public static final RedisReplicaInstance.State CONNECTING
public static final RedisReplicaInstance.State SYNC
public static final RedisReplicaInstance.State CONNECTED
public static RedisReplicaInstance.State[] values()
for (RedisReplicaInstance.State c : RedisReplicaInstance.State.values()) System.out.println(c);
public static RedisReplicaInstance.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2023 lettuce.io. All rights reserved.