| Modifier and Type | Method and Description |
|---|---|
| public default void | send(byte[]
byte array containing a message message, int length of the message messageLen, byte message sequence index (used in a native protocol) messageSequence)Synchronously send the message to server. |
| public default void | |
| public default CompletableFuture | Returns: resultmessage extending message, CompletableFuture<?> Messagea Future returning operation result future, Runnable a callback to receive notification of when the message is completely written callback)Asynchronously write a message with a notification being delivered to |
| public default void | |
| public default MessageSender | Returns: MessageSender instanceReturn the previous PacketSender instance from the decorators chain or the current PacketSender if it is the first entry in a chain. |
| public default MessageSender |
| send | back to summary |
|---|---|
| public default void send(byte[] message, int messageLen, byte messageSequence) throws IOException Synchronously send the message to server.
| |
| send | back to summary |
|---|---|
| public default void send(M message) Synchronously send the message to server.
| |
| send | back to summary |
|---|---|
| public default CompletableFuture Asynchronously write a message with a notification being delivered to
| |
| setMaxAllowedPacket | back to summary |
|---|---|
| public default void setMaxAllowedPacket(int maxAllowedPacket) Set max allowed packet size.
| |
| undecorate | back to summary |
|---|---|
| public default MessageSender 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 default MessageSender Return a PacketSender instance free of decorators.
| |