Package akka.io.dns

Class DnsProtocol


  • public class DnsProtocol
    extends java.lang.Object
    Supersedes Dns protocol.

    Note that one MUST configure akka.io.dns.resolver = async 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).

    • Constructor Detail

      • DnsProtocol

        public DnsProtocol()
    • Method Detail

      • ipRequestType

        public static DnsProtocol.RequestType ipRequestType​(boolean ipv4,
                                                            boolean ipv6)
        Java API
        Parameters:
        ipv4 - (undocumented)
        ipv6 - (undocumented)
        Returns:
        (undocumented)
      • resolve

        public static DnsProtocol.Resolve resolve​(java.lang.String name)
        Java API
        Parameters:
        name - (undocumented)
        Returns:
        (undocumented)
      • resolve

        public static DnsProtocol.Resolve resolve​(java.lang.String name,
                                                  DnsProtocol.RequestType requestType)
        Java API
        Parameters:
        name - (undocumented)
        requestType - (undocumented)
        Returns:
        (undocumented)