Package org.minidns.source.async
Class AsyncNetworkDataSource
- java.lang.Object
-
- org.minidns.source.AbstractDnsDataSource
-
- org.minidns.source.async.AsyncNetworkDataSource
-
- All Implemented Interfaces:
DnsDataSource
public class AsyncNetworkDataSource extends AbstractDnsDataSource
-
-
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 Modifier and Type Field Description protected static Logger
LOGGER
-
Fields inherited from class org.minidns.source.AbstractDnsDataSource
timeout, udpPayloadSize
-
-
Constructor Summary
Constructors Constructor Description AsyncNetworkDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsQueryResult
query(DnsMessage message, InetAddress address, int port)
MiniDnsFuture<DnsQueryResult,IOException>
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
-
-
-
-
Constructor Detail
-
AsyncNetworkDataSource
public AsyncNetworkDataSource()
-
-
Method Detail
-
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
public DnsQueryResult query(DnsMessage message, InetAddress address, int port) throws IOException
- Specified by:
query
in interfaceDnsDataSource
- Specified by:
query
in classAbstractDnsDataSource
- Throws:
IOException
-
-