| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final DnsRecord[] | |
| private final Channel | |
| private final Future | |
| private int | |
| private static final long | |
| private static final InternalLogger | |
| private final InetSocketAddress | |
| private final DnsRecord | |
| private final Promise | |
| private final DnsQueryContextManager | |
| private final long | |
| private final DnsQuestion | |
| private final boolean | |
| private final boolean | |
| private final Bootstrap | |
| private static final TcpDnsQueryEncoder | |
| private volatile Future |
| Access | Constructor and Description |
|---|---|
| pack-priv | DnsQueryContext(Channel channel, Future<? extends Channel> channelReadyFuture, InetSocketAddress nameServerAddr, DnsQueryContextManager queryContextManager, int maxPayLoadSize, boolean recursionDesired, long queryTimeoutMillis, DnsQuestion question, DnsRecord[] additionals, Promise<AddressedEnvelope<DnsResponse, InetSocketAddress>> promise, Bootstrap socketBootstrap, boolean retryWithTcpOnTimeout)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv final boolean | finishFailure(String message, Throwable cause, boolean timeout)
Notifies the original |
| private void | |
| pack-priv void | finishSuccess(AddressedEnvelope<? extends DnsResponse, InetSocketAddress> envelope, boolean truncated)
Notifies the original |
| private static boolean | |
| pack-priv final boolean | |
| protected abstract DnsQuery | Returns: the new query.the transaction id to use. id, InetSocketAddress the nameserver to which the query will be send. nameServerAddr)Creates and returns a new |
| private void | |
| protected abstract String | |
| pack-priv final DnsQuestion | Returns: the question.Returns the |
| private void | |
| private boolean | Returns: true if retry via TCP is supported and so the ownership of
originalResult was transferred, false otherwise.the result of the original originalResult)DnsQueryContext.Retry the original query with TCP if possible. |
| private ChannelFuture | |
| private boolean | |
| pack-priv final ChannelFuture | Returns: theChannelFuture that is notified once once the write completes.true if Channel#flush() should be called as well.Write the query and return the |
| private void |
| additionals | back to summary |
|---|---|
| private final DnsRecord[] additionals | |
| channel | back to summary |
|---|---|
| private final Channel channel | |
| channelReadyFuture | back to summary |
|---|---|
| private final Future<? extends Channel> channelReadyFuture | |
| id | back to summary |
|---|---|
| private int id | |
| ID_REUSE_ON_TIMEOUT_DELAY_MILLIS | back to summary |
|---|---|
| private static final long ID_REUSE_ON_TIMEOUT_DELAY_MILLIS | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| nameServerAddr | back to summary |
|---|---|
| private final InetSocketAddress nameServerAddr | |
| optResource | back to summary |
|---|---|
| private final DnsRecord optResource | |
| promise | back to summary |
|---|---|
| private final Promise<AddressedEnvelope<DnsResponse, InetSocketAddress>> promise | |
| queryContextManager | back to summary |
|---|---|
| private final DnsQueryContextManager queryContextManager | |
| queryTimeoutMillis | back to summary |
|---|---|
| private final long queryTimeoutMillis | |
| question | back to summary |
|---|---|
| private final DnsQuestion question | |
| recursionDesired | back to summary |
|---|---|
| private final boolean recursionDesired | |
| retryWithTcpOnTimeout | back to summary |
|---|---|
| private final boolean retryWithTcpOnTimeout | |
| socketBootstrap | back to summary |
|---|---|
| private final Bootstrap socketBootstrap | |
| TCP_ENCODER | back to summary |
|---|---|
| private static final TcpDnsQueryEncoder TCP_ENCODER | |
| timeoutFuture | back to summary |
|---|---|
| private volatile Future<?> timeoutFuture | |
| DnsQueryContext | back to summary |
|---|---|
| pack-priv DnsQueryContext(Channel channel, Future<? extends Channel> channelReadyFuture, InetSocketAddress nameServerAddr, DnsQueryContextManager queryContextManager, int maxPayLoadSize, boolean recursionDesired, long queryTimeoutMillis, DnsQuestion question, DnsRecord[] additionals, Promise<AddressedEnvelope<DnsResponse, InetSocketAddress>> promise, Bootstrap socketBootstrap, boolean retryWithTcpOnTimeout) | |
| failQuery | back to summary |
|---|---|
| private void failQuery(DnsQuery query, Throwable cause, ChannelPromise writePromise) | |
| finishFailure | back to summary |
|---|---|
| pack-priv final boolean finishFailure(String message, Throwable cause, boolean timeout) Notifies the original | |
| finishOriginal | back to summary |
|---|---|
private void finishOriginal(Object originalResult, Future<?> future)
| |
| finishSuccess | back to summary |
|---|---|
| pack-priv void finishSuccess(AddressedEnvelope<? extends DnsResponse, InetSocketAddress> envelope, boolean truncated) Notifies the original | |
| hasOptRecord | back to summary |
|---|---|
| private static boolean hasOptRecord(DnsRecord[] additionals) | |
| isDone | back to summary |
|---|---|
| pack-priv final boolean isDone() Returns
| |
| newQuery | back to summary |
|---|---|
| protected abstract DnsQuery newQuery(int id, InetSocketAddress nameServerAddr) Creates and returns a new
| |
| onQueryWriteCompletion | back to summary |
|---|---|
| private void onQueryWriteCompletion(final long queryTimeoutMillis, ChannelFuture writeFuture) | |
| protocol | back to summary |
|---|---|
| protected abstract String protocol() Returns the protocol that is used for the query.
| |
| question | back to summary |
|---|---|
| pack-priv final DnsQuestion question() Returns the
| |
| removeFromContextManager | back to summary |
|---|---|
| private void removeFromContextManager(InetSocketAddress nameServerAddr) | |
| retryWithTcp | back to summary |
|---|---|
| private boolean retryWithTcp(final Object originalResult) Retry the original query with TCP if possible.
| |
| sendQuery | back to summary |
|---|---|
| private ChannelFuture sendQuery(final DnsQuery query, final boolean flush) | |
| trySuccess | back to summary |
|---|---|
private boolean trySuccess(AddressedEnvelope<? extends DnsResponse, InetSocketAddress> envelope)
| |
| writeQuery | back to summary |
|---|---|
| pack-priv final ChannelFuture writeQuery(boolean flush) Write the query and return the
| |
| writeQuery | back to summary |
|---|---|
| private void writeQuery(final DnsQuery query, final boolean flush, ChannelPromise promise) | |
| Modifier and Type | Field and Description |
|---|---|
| private final InetSocketAddress | |
| private final DnsResponse | |
| private final InetSocketAddress |
| Access | Constructor and Description |
|---|---|
| pack-priv | AddressedEnvelopeAdapter(InetSocketAddress sender, InetSocketAddress recipient, DnsResponse response)
|
| Modifier and Type | Method and Description |
|---|---|
| public DnsResponse | content()
Implements io. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public InetSocketAddress | recipient()
Implements io. |
| public int | refCnt()
Implements io. |
| public boolean | release()
Implements io. 1 and deallocates this object if the reference count reaches at
0.
|
| public boolean | release(int decrement)
Implements io. decrement and deallocates this object if the reference
count reaches at 0.
|
| public AddressedEnvelope | |
| public AddressedEnvelope | retain(int increment)
Implements io. increment.
|
| public InetSocketAddress | sender()
Implements io. |
| public AddressedEnvelope | touch()
Implements io. |
| public AddressedEnvelope | touch(Object hint)
Implements io. |
| recipient | back to summary |
|---|---|
| private final InetSocketAddress recipient | |
| response | back to summary |
|---|---|
| private final DnsResponse response | |
| sender | back to summary |
|---|---|
| private final InetSocketAddress sender | |
| AddressedEnvelopeAdapter | back to summary |
|---|---|
| pack-priv AddressedEnvelopeAdapter(InetSocketAddress sender, InetSocketAddress recipient, DnsResponse response) | |
| content | back to summary |
|---|---|
| public DnsResponse content() Implements io. Doc from io. Returns the message wrapped by this envelope message.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| recipient | back to summary |
|---|---|
| public InetSocketAddress recipient() Implements io. Doc from io. Returns the address of the recipient of this message.
| |
| refCnt | back to summary |
|---|---|
| public int refCnt() Implements io. Doc from io. Returns the reference count of this object. If
| |
| release | back to summary |
|---|---|
| public boolean release() Implements io. Doc from io. Decreases the reference count by
| |
| release | back to summary |
|---|---|
| public boolean release(int decrement) Implements io. Doc from io. Decreases the reference count by the specified
| |
| retain | back to summary |
|---|---|
| public AddressedEnvelope Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public AddressedEnvelope Implements io. Doc from io. Increases the reference count by the specified
| |
| sender | back to summary |
|---|---|
| public InetSocketAddress sender() Implements io. Doc from io. Returns the address of the sender of this message.
| |
| touch | back to summary |
|---|---|
| public AddressedEnvelope Implements io. Doc from io. Records the current access location of this object for debugging purposes.
If this object is determined to be leaked, the information recorded by this operation will be provided to you
via
| |
| touch | back to summary |
|---|---|
| public AddressedEnvelope Implements io. Doc from io. Records the current access location of this object with an additional arbitrary information for debugging
purposes. If this object is determined to be leaked, the information recorded by this operation will be
provided to you via
| |