com.alipay.remoting.rpc.protocol
Enum RpcCommandCode

java.lang.Object
  extended by java.lang.Enum<RpcCommandCode>
      extended by com.alipay.remoting.rpc.protocol.RpcCommandCode
All Implemented Interfaces:
CommandCode, Serializable, Comparable<RpcCommandCode>

public enum RpcCommandCode
extends Enum<RpcCommandCode>
implements CommandCode

Command code for rpc remoting command.


Enum Constant Summary
RPC_REQUEST
           
RPC_RESPONSE
           
 
Field Summary
 
Fields inherited from interface com.alipay.remoting.CommandCode
HEARTBEAT_VALUE
 
Method Summary
 short value()
           
static RpcCommandCode valueOf(short value)
           
static RpcCommandCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RpcCommandCode[] 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

RPC_REQUEST

public static final RpcCommandCode RPC_REQUEST

RPC_RESPONSE

public static final RpcCommandCode RPC_RESPONSE
Method Detail

values

public static RpcCommandCode[] 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 (RpcCommandCode c : RpcCommandCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RpcCommandCode 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 RpcCommandCode valueOf(short value)


Copyright © 2018. All rights reserved.