Package akka.io.dns
Class DnsProtocol
- java.lang.Object
-
- akka.io.dns.DnsProtocol
-
public class DnsProtocol extends java.lang.Object
SupersedesDns
protocol.Note that one MUST configure
akka.io.dns.resolver = async-dns
to make use of this protocol and resolver.Allows for more detailed lookups, by specifying which records should be checked, and responses can more information than plain IP addresses (e.g. ports for SRV records).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DnsProtocol.Ip
static class
DnsProtocol.Ip$
static interface
DnsProtocol.RequestType
static class
DnsProtocol.Resolve
Sending this to theAsyncDnsManager
will either lead to aDnsProtocol.Resolved
or aStatus.Failure
response.static class
DnsProtocol.Resolve$
static class
DnsProtocol.Resolved
param: name of the record param: records resource records for the query param: additionalRecords records that relate to the query but are not strictly answersstatic class
DnsProtocol.Resolved$
static class
DnsProtocol.Srv$
-
Constructor Summary
Constructors Constructor Description DnsProtocol()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DnsProtocol.RequestType
ipRequestType()
Java APIstatic DnsProtocol.RequestType
ipRequestType(boolean ipv4, boolean ipv6)
Java APIstatic DnsProtocol.Resolve
resolve(java.lang.String name)
Java APIstatic DnsProtocol.Resolve
resolve(java.lang.String name, DnsProtocol.RequestType requestType)
Java APIstatic DnsProtocol.RequestType
srvRequestType()
Java API
-
-
-
Method Detail
-
ipRequestType
public static DnsProtocol.RequestType ipRequestType(boolean ipv4, boolean ipv6)
Java API
-
ipRequestType
public static DnsProtocol.RequestType ipRequestType()
Java API
-
srvRequestType
public static DnsProtocol.RequestType srvRequestType()
Java API
-
resolve
public static DnsProtocol.Resolve resolve(java.lang.String name)
Java API
-
resolve
public static DnsProtocol.Resolve resolve(java.lang.String name, DnsProtocol.RequestType requestType)
Java API
-
-