public interface ClientMessage
| Modifier and Type | Method and Description |
|---|---|
CorePublisher<io.netty.buffer.ByteBuf> |
encode(io.netty.buffer.ByteBufAllocator allocator,
ConnectionContext context)
Encode a message into
ByteBufs. |
default boolean |
isCumulative()
Returns whether the encoded buffers can be cumulated to maximize the payload size.
|
default boolean |
isSequenceReset()
Returns whether the sequence should be reset before encoding this message.
|
default boolean isSequenceReset()
true if the sequence should be reset.default boolean isCumulative()
true if can be cumulated.CorePublisher<io.netty.buffer.ByteBuf> encode(io.netty.buffer.ByteBufAllocator allocator, ConnectionContext context)
ByteBufs.allocator - the ByteBufAllocator that use to get ByteBuf to write into.context - current MySQL connection context.Flux that's produces the encoded ByteBufs.IllegalArgumentException - if allocator or context is null.Copyright © 2018–2024 asyncer.io. All rights reserved.