public class RpcProtocol extends Object implements Protocol
| 限定符和类型 | 字段和说明 |
|---|---|
static byte |
PROTOCOL_CODE |
| 构造器和说明 |
|---|
RpcProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
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()
Get the length of request header.
|
static int |
getResponseHeaderLength()
Get the length of response header.
|
public static final byte PROTOCOL_CODE
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.