public class RpcProtocolV2 extends Object implements Protocol
| 限定符和类型 | 字段和说明 |
|---|---|
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
|
| 构造器和说明 |
|---|
RpcProtocolV2() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 Protocolpublic CommandDecoder getDecoder()
ProtocolgetDecoder 在接口中 Protocolpublic HeartbeatTrigger getHeartbeatTrigger()
ProtocolgetHeartbeatTrigger 在接口中 Protocolpublic CommandHandler getCommandHandler()
ProtocolgetCommandHandler 在接口中 Protocolpublic CommandFactory getCommandFactory()
ProtocolgetCommandFactory 在接口中 ProtocolCopyright © 2021. All rights reserved.