public static enum RedisSlaveInstance.State extends Enum<RedisSlaveInstance.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.
|
SYNC
the master and replica are trying to perform the synchronization.
|
Modifier and Type | Method and Description |
---|---|
static RedisSlaveInstance.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedisSlaveInstance.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedisSlaveInstance.State CONNECT
public static final RedisSlaveInstance.State CONNECTING
public static final RedisSlaveInstance.State SYNC
public static final RedisSlaveInstance.State CONNECTED
public static RedisSlaveInstance.State[] values()
for (RedisSlaveInstance.State c : RedisSlaveInstance.State.values()) System.out.println(c);
public static RedisSlaveInstance.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 © 2019 lettuce.io. All rights reserved.