@ChannelHandler.Sharable public final class TcpDnsQueryEncoder extends io.netty.handler.codec.MessageToByteEncoder<DnsQuery>
| Constructor and Description |
|---|
TcpDnsQueryEncoder()
Creates a new encoder with the default record encoder.
|
TcpDnsQueryEncoder(DnsRecordEncoder recordEncoder)
Creates a new encoder with the specified
recordEncoder. |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.buffer.ByteBuf |
allocateBuffer(io.netty.channel.ChannelHandlerContext ctx,
DnsQuery msg,
boolean preferDirect) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
DnsQuery msg,
io.netty.buffer.ByteBuf out) |
acceptOutboundMessage, isPreferDirect, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic TcpDnsQueryEncoder()
public TcpDnsQueryEncoder(DnsRecordEncoder recordEncoder)
recordEncoder.Copyright © 2008–2025 The Netty Project. All rights reserved.