com.alipay.remoting
Enum CommonCommandCode

java.lang.Object
  extended by java.lang.Enum<CommonCommandCode>
      extended by 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.


Enum Constant Summary
HEARTBEAT
           
 
Field Summary
 
Fields inherited from interface com.alipay.remoting.CommandCode
HEARTBEAT_VALUE
 
Method Summary
 short value()
           
static CommonCommandCode valueOf(short value)
           
static CommonCommandCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommonCommandCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HEARTBEAT

public static final CommonCommandCode HEARTBEAT
Method Detail

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.