Interface ClientListenerMessageParser
-
- All Known Implementing Classes:
ClientMessageParser,JdbcMessageParser,OdbcMessageParser
public interface ClientListenerMessageParserClient listener message parser.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClientListenerRequestdecode(ClientMessage msg)Decode request from byte array.intdecodeCommandType(ClientMessage msg)Decode command type.longdecodeRequestId(ClientMessage msg)Decode request Id.ClientMessageencode(ClientListenerResponse resp)Encode response to byte array.
-
-
-
Method Detail
-
decode
ClientListenerRequest decode(ClientMessage msg)
Decode request from byte array.- Parameters:
msg- Message.- Returns:
- Request.
-
encode
ClientMessage encode(ClientListenerResponse resp)
Encode response to byte array.- Parameters:
resp- Response.- Returns:
- Message.
-
decodeCommandType
int decodeCommandType(ClientMessage msg)
Decode command type. Allows to recognize the command (message type) without decoding the entire message.- Parameters:
msg- Message.- Returns:
- Command type.
-
decodeRequestId
long decodeRequestId(ClientMessage msg)
Decode request Id. Allows to recognize the request Id, if any, without decoding the entire message.- Parameters:
msg- Message.- Returns:
- Request Id.
-
-