MessageReader which handles the receiving of logical MySQL packets from the provided socket input stream.
Multi-packets are handled outside of this reader.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv NativePacketHeader | |
| pack-priv NativePacketPayload | |
| protected RuntimeProperty | |
| private byte | |
| protected SocketConnection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte | getMessageSequence()
Overrides default com. Get last message sequence number, as it was stored by |
| public NativePacketHeader | probeHeader()
Overrides default com. Read the next message header from server, possibly blocking indefinitely until the message is received,
and cache it so that the next |
| public NativePacketPayload | probeMessage(Optional<NativePacketPayload>
Message object to reuse. May be ignored by implementation.MessageHeader instanceOverrides default com. Read message from server into to the given |
| public NativePacketHeader | readHeader()
Implements com. Read the next message header from server, possibly blocking indefinitely until the message is received. |
| private NativePacketHeader | |
| public NativePacketPayload | readMessage(Optional<NativePacketPayload>
Message object to reuse. May be ignored by implementation.MessageHeader instanceImplements com. Read message from server into to the given |
| private NativePacketPayload | |
| public void | resetMessageSequence()
Overrides default com. Set stored message sequence number to 0. |
| lastHeader | back to summary |
|---|---|
| pack-priv NativePacketHeader lastHeader | |
| lastMessage | back to summary |
|---|---|
| pack-priv NativePacketPayload lastMessage | |
| maxAllowedPacket | back to summary |
|---|---|
| protected RuntimeProperty<Integer> maxAllowedPacket | |
| readPacketSequence | back to summary |
|---|---|
| private byte readPacketSequence | |
| socketConnection | back to summary |
|---|---|
| protected SocketConnection socketConnection | |
| SimplePacketReader | back to summary |
|---|---|
| public SimplePacketReader(SocketConnection socketConnection, RuntimeProperty<Integer> maxAllowedPacket) | |
| getMessageSequence | back to summary |
|---|---|
| public byte getMessageSequence() Overrides default com. Doc from com. Get last message sequence number, as it was stored by
| |
| probeHeader | back to summary |
|---|---|
| public NativePacketHeader probeHeader() throws IOException Overrides default com. Doc from com. Read the next message header from server, possibly blocking indefinitely until the message is received,
and cache it so that the next
| |
| probeMessage | back to summary |
|---|---|
| public NativePacketPayload probeMessage(Optional<NativePacketPayload> reuse, NativePacketHeader header) throws IOException Overrides default com. Doc from com. Read message from server into to the given
| |
| readHeader | back to summary |
|---|---|
| public NativePacketHeader readHeader() throws IOException Implements com. Doc from com. Read the next message header from server, possibly blocking indefinitely until the message is received.
| |
| readHeaderLocal | back to summary |
|---|---|
| private NativePacketHeader readHeaderLocal() throws IOException | |
| readMessage | back to summary |
|---|---|
| public NativePacketPayload readMessage(Optional<NativePacketPayload> reuse, NativePacketHeader header) throws IOException Implements com. Doc from com. Read message from server into to the given
| |
| readMessageLocal | back to summary |
|---|---|
| private NativePacketPayload readMessageLocal(Optional<NativePacketPayload> reuse, NativePacketHeader header) throws IOException | |
| resetMessageSequence | back to summary |
|---|---|
| public void resetMessageSequence() Overrides default com. Doc from com. Set stored message sequence number to 0.
| |