public class RpcProtocolV2 extends Object implements Protocol
| Modifier and Type | Field and Description |
|---|---|
static byte |
PROTOCOL_CODE |
static byte |
PROTOCOL_VERSION_1
version 1, is the same with RpcProtocol
|
static byte |
PROTOCOL_VERSION_2
version 2, is the protocol version for RpcProtocolV2
|
| Constructor and Description |
|---|
RpcProtocolV2() |
| Modifier and Type | Method and Description |
|---|---|
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 newEncoder for the protocol.
|
HeartbeatTrigger |
getHeartbeatTrigger()
Get the heartbeat trigger for the protocol.
|
static int |
getRequestHeaderLength() |
static int |
getResponseHeaderLength() |
public static final byte PROTOCOL_CODE
public static final byte PROTOCOL_VERSION_1
public static final byte PROTOCOL_VERSION_2
public static int getRequestHeaderLength()
public static int getResponseHeaderLength()
public CommandEncoder getEncoder()
ProtocolgetEncoder in interface Protocolpublic CommandDecoder getDecoder()
ProtocolgetDecoder in interface Protocolpublic HeartbeatTrigger getHeartbeatTrigger()
ProtocolgetHeartbeatTrigger in interface Protocolpublic CommandHandler getCommandHandler()
ProtocolgetCommandHandler in interface Protocolpublic CommandFactory getCommandFactory()
ProtocolgetCommandFactory in interface ProtocolCopyright © 2024. All rights reserved.