Package org.minidns.source.async
Class AsyncNetworkDataSource
java.lang.Object
org.minidns.source.AbstractDnsDataSource
org.minidns.source.async.AsyncNetworkDataSource
- All Implemented Interfaces:
DnsDataSource
A DNS data sources that resolves requests via the network asynchronously.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.minidns.source.AbstractDnsDataSource
AbstractDnsDataSource.QueryMode
Nested classes/interfaces inherited from interface org.minidns.source.DnsDataSource
DnsDataSource.OnResponseCallback
-
Field Summary
Fields inherited from class org.minidns.source.AbstractDnsDataSource
timeout, udpPayloadSize
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionquery
(DnsMessage message, InetAddress address, int port) queryAsync
(DnsMessage message, InetAddress address, int port, DnsDataSource.OnResponseCallback onResponseCallback) Methods inherited from class org.minidns.source.AbstractDnsDataSource
cacheResult, getQueryMode, getTimeout, getUdpPayloadSize, setQueryMode, setTimeout, setUdpPayloadSize
-
Field Details
-
LOGGER
The logger of this data source.
-
-
Constructor Details
-
AsyncNetworkDataSource
public AsyncNetworkDataSource()
-
-
Method Details
-
queryAsync
public MiniDnsFuture<DnsQueryResult,IOException> queryAsync(DnsMessage message, InetAddress address, int port, DnsDataSource.OnResponseCallback onResponseCallback) - Specified by:
queryAsync
in interfaceDnsDataSource
- Overrides:
queryAsync
in classAbstractDnsDataSource
-
query
- Specified by:
query
in interfaceDnsDataSource
- Specified by:
query
in classAbstractDnsDataSource
- Throws:
IOException
-