com.alipay.remoting
Enum CommonCommandCode
java.lang.Object
java.lang.Enum<CommonCommandCode>
com.alipay.remoting.CommonCommandCode
- All Implemented Interfaces:
- CommandCode, Serializable, Comparable<CommonCommandCode>
public enum CommonCommandCode
- extends Enum<CommonCommandCode>
- implements CommandCode
The common command code, especially for heart beat command.
HEARTBEAT
public static final CommonCommandCode HEARTBEAT
values
public static CommonCommandCode[] 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 (CommonCommandCode c : CommonCommandCode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CommonCommandCode 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 name
NullPointerException - if the argument is null
value
public short value()
- Specified by:
value in interface CommandCode
- Returns:
- the short value of the code
valueOf
public static CommonCommandCode valueOf(short value)
Copyright © 2018. All rights reserved.