public final class InitDbMessage extends Object
| Constructor and Description |
|---|
InitDbMessage(String database) |
| Modifier and Type | Method and Description |
|---|---|
Mono<io.netty.buffer.ByteBuf> |
encode(io.netty.buffer.ByteBufAllocator allocator,
ConnectionContext context)
Encode a message into
ByteBufs. |
protected void |
writeTo(io.netty.buffer.ByteBuf buf,
ConnectionContext context) |
public InitDbMessage(String database)
protected void writeTo(io.netty.buffer.ByteBuf buf,
ConnectionContext context)
public Mono<io.netty.buffer.ByteBuf> encode(io.netty.buffer.ByteBufAllocator allocator, ConnectionContext context)
ClientMessageByteBufs.encode in interface ClientMessageallocator - the ByteBufAllocator that use to get ByteBuf to write into.context - current MySQL connection context.Flux that's produces the encoded ByteBufs.Copyright © 2018–2024 asyncer.io. All rights reserved.