public final class PreparedTextQueryMessage extends AtomicReference<MySqlParameter[]> implements ClientMessage, Disposable
Disposable.Composite, Disposable.Swap| Constructor and Description |
|---|
PreparedTextQueryMessage(Query query,
MySqlParameter[] values)
Creates a
PreparedTextQueryMessage with parameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Mono<io.netty.buffer.ByteBuf> |
encode(io.netty.buffer.ByteBufAllocator allocator,
ConnectionContext context)
Encode a message into
ByteBufs. |
boolean |
isDisposed() |
String |
toString() |
accumulateAndGet, compareAndSet, get, getAndAccumulate, getAndSet, getAndUpdate, lazySet, set, updateAndGet, weakCompareAndSetpublic PreparedTextQueryMessage(Query query, MySqlParameter[] values)
PreparedTextQueryMessage with parameters.query - the parsed Query.values - the parameter values.IllegalArgumentException - if query or values is null.public void dispose()
dispose in interface Disposablepublic boolean isDisposed()
isDisposed in interface Disposablepublic 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.public String toString()
toString in class AtomicReference<MySqlParameter[]>Copyright © 2018–2023 asyncer.io. All rights reserved.