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)
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 © 2021. All rights reserved.