com.alipay.remoting
Interface Protocol

All Known Implementing Classes:
RpcProtocol, RpcProtocolV2

public interface Protocol

A protocol contains a group of commands.


Method Summary
 CommandFactory getCommandFactory()
          Get the command factory for the protocol.
 CommandHandler getCommandHandler()
          Get the command handler for the protocol.
 CommandDecoder getDecoder()
          Get the decoder for the protocol.
 CommandEncoder getEncoder()
          Get the encoder for the protocol.
 HeartbeatTrigger getHeartbeatTrigger()
          Get the heartbeat trigger for the protocol.
 

Method Detail

getEncoder

CommandEncoder getEncoder()
Get the encoder for the protocol.

Returns:

getDecoder

CommandDecoder getDecoder()
Get the decoder for the protocol.

Returns:

getHeartbeatTrigger

HeartbeatTrigger getHeartbeatTrigger()
Get the heartbeat trigger for the protocol.

Returns:

getCommandHandler

CommandHandler getCommandHandler()
Get the command handler for the protocol.

Returns:

getCommandFactory

CommandFactory getCommandFactory()
Get the command factory for the protocol.

Returns:


Copyright © 2018. All rights reserved.