com.alipay.remoting.rpc.protocol
Enum RpcCommandCode
java.lang.Object
java.lang.Enum<RpcCommandCode>
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.
RPC_REQUEST
public static final RpcCommandCode RPC_REQUEST
RPC_RESPONSE
public static final RpcCommandCode RPC_RESPONSE
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.