public class JdbcMessageParser extends Object implements ClientListenerMessageParser
Modifier and Type | Field and Description |
---|---|
protected static int |
INIT_CAP
Initial output stream capacity.
|
Constructor and Description |
---|
JdbcMessageParser(GridKernalContext ctx,
JdbcProtocolContext protoCtx) |
Modifier and Type | Method and Description |
---|---|
protected BinaryReaderExImpl |
createReader(ClientMessage msg) |
protected BinaryWriterExImpl |
createWriter(int cap) |
ClientListenerRequest |
decode(ClientMessage msg)
Decode request from byte array.
|
int |
decodeCommandType(ClientMessage msg)
Decode command type.
|
long |
decodeRequestId(ClientMessage msg)
Decode request Id.
|
ClientMessage |
encode(ClientListenerResponse msg)
Encode response to byte array.
|
protected static final int INIT_CAP
public JdbcMessageParser(GridKernalContext ctx, JdbcProtocolContext protoCtx)
ctx
- Context.protoCtx
- Protocol context.protected BinaryReaderExImpl createReader(ClientMessage msg)
msg
- Message.protected BinaryWriterExImpl createWriter(int cap)
cap
- Capacistypublic ClientListenerRequest decode(ClientMessage msg)
decode
in interface ClientListenerMessageParser
msg
- Message.public ClientMessage encode(ClientListenerResponse msg)
encode
in interface ClientListenerMessageParser
msg
- Response.public int decodeCommandType(ClientMessage msg)
decodeCommandType
in interface ClientListenerMessageParser
msg
- Message.public long decodeRequestId(ClientMessage msg)
decodeRequestId
in interface ClientListenerMessageParser
msg
- Message.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021