public static enum Protocol.SentinelKeyword extends Enum<Protocol.SentinelKeyword> implements Rawable
Enum Constant and Description |
---|
MASTER |
MASTERS |
MYID |
REPLICAS |
SENTINELS |
SLAVES |
Modifier and Type | Method and Description |
---|---|
byte[] |
getRaw() |
static Protocol.SentinelKeyword |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol.SentinelKeyword[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol.SentinelKeyword MYID
public static final Protocol.SentinelKeyword MASTERS
public static final Protocol.SentinelKeyword MASTER
public static final Protocol.SentinelKeyword SENTINELS
public static final Protocol.SentinelKeyword SLAVES
public static final Protocol.SentinelKeyword REPLICAS
public static Protocol.SentinelKeyword[] values()
for (Protocol.SentinelKeyword c : Protocol.SentinelKeyword.values()) System.out.println(c);
public static Protocol.SentinelKeyword 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 © 2022. All rights reserved.