com.alipay.remoting
Interface RemotingCommand

All Superinterfaces:
Serializable
All Known Implementing Classes:
HeartbeatAckCommand, HeartbeatCommand, RequestCommand, ResponseCommand, RpcCommand, RpcRequestCommand, RpcResponseCommand

public interface RemotingCommand
extends Serializable

Remoting command.


Method Summary
 void deserialize()
          Deserialize all parts of remoting command
 void deserializeContent(InvokeContext invokeContext)
          Deserialize content of remoting command
 CommandCode getCmdCode()
          Get the command code for this command
 int getId()
          Get the id of the command
 InvokeContext getInvokeContext()
          Get invoke context for this command
 ProtocolCode getProtocolCode()
          Get the code of the protocol that this command belongs to
 ProtocolSwitch getProtocolSwitch()
          Get the protocol switch status for this command
 byte getSerializer()
          Get serializer type for this command
 void serialize()
          Serialize all parts of remoting command
 void serializeContent(InvokeContext invokeContext)
          Serialize content of remoting command
 

Method Detail

getProtocolCode

ProtocolCode getProtocolCode()
Get the code of the protocol that this command belongs to

Returns:
protocol code

getCmdCode

CommandCode getCmdCode()
Get the command code for this command

Returns:
command code

getId

int getId()
Get the id of the command

Returns:
an int value represent the command id

getInvokeContext

InvokeContext getInvokeContext()
Get invoke context for this command

Returns:
context

getSerializer

byte getSerializer()
Get serializer type for this command

Returns:

getProtocolSwitch

ProtocolSwitch getProtocolSwitch()
Get the protocol switch status for this command

Returns:

serialize

void serialize()
               throws SerializationException
Serialize all parts of remoting command

Throws:
SerializationException

deserialize

void deserialize()
                 throws DeserializationException
Deserialize all parts of remoting command

Throws:
DeserializationException

serializeContent

void serializeContent(InvokeContext invokeContext)
                      throws SerializationException
Serialize content of remoting command

Parameters:
invokeContext -
Throws:
SerializationException

deserializeContent

void deserializeContent(InvokeContext invokeContext)
                        throws DeserializationException
Deserialize content of remoting command

Parameters:
invokeContext -
Throws:
DeserializationException


Copyright © 2018. All rights reserved.