Class TcpDnsQueryContext
java.lang.Object
io.netty.resolver.dns.DnsQueryContext
io.netty.resolver.dns.TcpDnsQueryContext
-
Constructor Summary
ConstructorsConstructorDescriptionTcpDnsQueryContext(Channel channel, java.net.InetSocketAddress nameServerAddr, DnsQueryContextManager queryContextManager, DnsQueryLifecycleObserver lifecycleObserver, int maxPayLoadSize, boolean recursionDesired, long queryTimeoutMillis, DnsQuestion question, DnsQuestion wireQuestion, DnsRecord[] additionals, Promise<AddressedEnvelope<DnsResponse, java.net.InetSocketAddress>> promise) -
Method Summary
Methods inherited from class DnsQueryContext
finishFailure, finishSuccess, isDone, question, wireQuestion, writeQueryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TcpDnsQueryContext
TcpDnsQueryContext(Channel channel, java.net.InetSocketAddress nameServerAddr, DnsQueryContextManager queryContextManager, DnsQueryLifecycleObserver lifecycleObserver, int maxPayLoadSize, boolean recursionDesired, long queryTimeoutMillis, DnsQuestion question, DnsQuestion wireQuestion, DnsRecord[] additionals, Promise<AddressedEnvelope<DnsResponse, java.net.InetSocketAddress>> promise)
-
-
Method Details
-
newQuery
Description copied from class:DnsQueryContextCreates and returns a newDnsQuery.- Specified by:
newQueryin classDnsQueryContext- Parameters:
id- the transaction id to use.nameServerAddr- the nameserver to which the query will be send.- Returns:
- the new query.
-
protocol
protected java.lang.String protocol()Description copied from class:DnsQueryContextReturns the protocol that is used for the query.- Specified by:
protocolin classDnsQueryContext- Returns:
- the protocol.
-