public static enum ControlCommand.Action extends Enum<ControlCommand.Action>
Enum Constant and Description |
---|
ADDDELAY |
CLOSECONNECTION |
ELECTNEWLEADER |
EXPIRESESSION |
FAILREQUESTS |
NORESPONSE |
PING |
REJECTCONNECTIONS |
RESET |
SHUTDOWN |
Modifier and Type | Method and Description |
---|---|
static ControlCommand.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ControlCommand.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControlCommand.Action PING
public static final ControlCommand.Action SHUTDOWN
public static final ControlCommand.Action CLOSECONNECTION
public static final ControlCommand.Action EXPIRESESSION
public static final ControlCommand.Action REJECTCONNECTIONS
public static final ControlCommand.Action ADDDELAY
public static final ControlCommand.Action FAILREQUESTS
public static final ControlCommand.Action NORESPONSE
public static final ControlCommand.Action RESET
public static final ControlCommand.Action ELECTNEWLEADER
public static ControlCommand.Action[] values()
for (ControlCommand.Action c : ControlCommand.Action.values()) System.out.println(c);
public static ControlCommand.Action 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 © 2008–2022 The Apache Software Foundation. All rights reserved.