| Modifier and Type | Field and Description |
|---|---|
| private final DnsQueryEncoder |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TcpDnsQueryEncoder(DnsRecordEncoder recordEncoder)
Creates a new encoder with the specified |
| Modifier and Type | Method and Description |
|---|---|
| protected ByteBuf | allocateBuffer(ChannelHandlerContext ctx, DnsQuery msg, boolean preferDirect)
Overrides io. ByteBuf which will be used as argument of encode(ChannelHandlerContext, I, ByteBuf).
|
| protected void | encode(ChannelHandlerContext
the ctx, DnsQuery ChannelHandlerContext which this MessageToByteEncoder belongs tothe message to encode msg, ByteBuf the out)ByteBuf into which the encoded message will be writtenImplements abstract io. ByteBuf.
|
| encoder | back to summary |
|---|---|
| private final DnsQueryEncoder encoder | |
| TcpDnsQueryEncoder | back to summary |
|---|---|
| public TcpDnsQueryEncoder() Creates a new encoder with the default record encoder. | |
| TcpDnsQueryEncoder | back to summary |
|---|---|
| public TcpDnsQueryEncoder(DnsRecordEncoder recordEncoder) Creates a new encoder with the specified | |
| allocateBuffer | back to summary |
|---|---|
| protected ByteBuf allocateBuffer(ChannelHandlerContext ctx, DnsQuery msg, boolean preferDirect) Overrides io. Doc from io. Allocate a
| |
| encode | back to summary |
|---|---|
| protected void encode(ChannelHandlerContext ctx, DnsQuery msg, ByteBuf out) throws Exception Implements abstract io. Doc from io. Encode a message into a
| |