@ChannelHandler.Sharable @UnstableApi 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, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public TcpDnsQueryEncoder()
public TcpDnsQueryEncoder(DnsRecordEncoder recordEncoder)
recordEncoder
.Copyright © 2008–2020 The Netty Project. All rights reserved.