public final class Execute extends Object implements FrontendMessage, FrontendMessage.DirectEncoder
FrontendMessage.DirectEncoder| Modifier and Type | Field and Description |
|---|---|
static int |
NO_LIMIT
No limit on returned rows.
|
static String |
UNNAMED_PORTAL
The unnamed portal.
|
| Constructor and Description |
|---|
Execute(String name,
int rows)
Create a new message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(io.netty.buffer.ByteBuf byteBuf)
Encode a message directly by writing its content to a
ByteBuf. |
Publisher<io.netty.buffer.ByteBuf> |
encode(io.netty.buffer.ByteBufAllocator byteBufAllocator)
Encode a message into a
ByteBuf. |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public static final int NO_LIMIT
public static final String UNNAMED_PORTAL
public Execute(String name, int rows)
name - the name of the portal to execute (an empty string selects the unnamed portal)rows - maximum number of rows to return, if portal contains a query that returns rows (ignored otherwise). Zero denotes “no limit”.IllegalArgumentException - if name is nullUNNAMED_PORTAL,
NO_LIMITpublic Publisher<io.netty.buffer.ByteBuf> encode(io.netty.buffer.ByteBufAllocator byteBufAllocator)
FrontendMessageByteBuf.encode in interface FrontendMessagebyteBufAllocator - the byteBufAllocator to use to get a ByteBuf to write intoPublisher that produces the ByteBuf containing the encoded messagepublic void encode(io.netty.buffer.ByteBuf byteBuf)
FrontendMessage.DirectEncoderByteBuf.encode in interface FrontendMessage.DirectEncoderbyteBuf - the target ByteBuf to write intoCopyright © 2023. All rights reserved.