MessageSender which handles the transmission of logical MySQL packets to the provided output stream. Large packets will be
split into multiple chunks.
| Modifier and Type | Field and Description |
|---|---|
| private BufferedOutputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | send(byte[]
byte array containing a message packet, int length of the message packetLen, byte message sequence index (used in a native protocol) packetSequence)Overrides default com. Synchronously send the message to server. |
| public MessageSender | undecorate()
Overrides default com. Return the previous PacketSender instance from the decorators chain or the current PacketSender if it is the first entry in a chain. |
| public MessageSender | undecorateAll()
Overrides default com. Return a PacketSender instance free of decorators. |
| outputStream | back to summary |
|---|---|
| private BufferedOutputStream outputStream | |
| SimplePacketSender | back to summary |
|---|---|
| public SimplePacketSender(BufferedOutputStream outputStream) | |
| send | back to summary |
|---|---|
| public void send(byte[] packet, int packetLen, byte packetSequence) throws IOException Overrides default com. Doc from com. Synchronously send the message to server.
| |
| undecorate | back to summary |
|---|---|
| public MessageSender Overrides default com. Doc from com. Return the previous PacketSender instance from the decorators chain or the current PacketSender if it is the first entry in a chain.
| |
| undecorateAll | back to summary |
|---|---|
| public MessageSender Overrides default com. Doc from com. Return a PacketSender instance free of decorators.
| |