public class RpcProtocol extends Object implements Protocol
| Modifier and Type | Field and Description |
|---|---|
static byte |
PROTOCOL_CODE |
| Constructor and Description |
|---|
RpcProtocol() |
| 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()
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 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.