Package io.lettuce.core.models.role
Enum RedisReplicaInstance.State
- java.lang.Object
-
- java.lang.Enum<RedisReplicaInstance.State>
-
- io.lettuce.core.models.role.RedisReplicaInstance.State
-
- All Implemented Interfaces:
Serializable
,Comparable<RedisReplicaInstance.State>
- Enclosing class:
- RedisReplicaInstance
public static enum RedisReplicaInstance.State extends Enum<RedisReplicaInstance.State>
State of the Replica.
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
NONE
public static final RedisReplicaInstance.State NONE
Nothing to replicate.
-
UNKNOWN
public static final RedisReplicaInstance.State UNKNOWN
unknown state.
-
HANDSHAKE
public static final RedisReplicaInstance.State HANDSHAKE
the instance is in the handshake state.
-
CONNECT
public static final RedisReplicaInstance.State CONNECT
the instance needs to connect to its master.
-
CONNECTING
public static final RedisReplicaInstance.State CONNECTING
the replica-master connection is in progress.
-
SYNC
public static final RedisReplicaInstance.State SYNC
the master and replica are trying to perform the synchronization.
-
CONNECTED
public static final RedisReplicaInstance.State CONNECTED
the replica is online.
-
-
Method Detail
-
values
public static RedisReplicaInstance.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RedisReplicaInstance.State c : RedisReplicaInstance.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RedisReplicaInstance.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-