public final class CompositeFrontendMessage extends Object implements FrontendMessage, FrontendMessage.DirectEncoder
FrontendMessage that aggregates FrontendMessage, specifically DirectEncoder messages to send multiple FrontendMessage in a single TCP packet.FrontendMessage.DirectEncoder| Constructor and Description |
|---|
CompositeFrontendMessage(FrontendMessage.DirectEncoder... messages) |
CompositeFrontendMessage(List<FrontendMessage.DirectEncoder> messages) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(FrontendMessage message) |
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 CompositeFrontendMessage(FrontendMessage.DirectEncoder... messages)
public CompositeFrontendMessage(List<FrontendMessage.DirectEncoder> messages)
public boolean contains(FrontendMessage message)
public 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.