public final class Describe extends Object implements FrontendMessage, FrontendMessage.DirectEncoder
FrontendMessage.DirectEncoder
Modifier and Type | Field and Description |
---|---|
static String |
UNNAMED
The unnamed statement or portal.
|
Constructor and Description |
---|
Describe(String name,
ExecutionType type)
Creates 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 String UNNAMED
public Describe(String name, ExecutionType type)
name
- The name of the prepared statement or portal to describe (an empty string selects the unnamed prepared statement or portal)type
- the type to closeIllegalArgumentException
- if name
or type
is null
UNNAMED
public Publisher<io.netty.buffer.ByteBuf> encode(io.netty.buffer.ByteBufAllocator byteBufAllocator)
FrontendMessage
ByteBuf
.encode
in interface FrontendMessage
byteBufAllocator
- 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.DirectEncoder
ByteBuf
.encode
in interface FrontendMessage.DirectEncoder
byteBuf
- the target ByteBuf
to write intoCopyright © 2020. All rights reserved.