Package akka.io

Class Dns

    • Constructor Detail

      • Dns

        public Dns()
    • Method Detail

      • lookup

        public static Dns$ lookup()
      • get

        public static DnsExt get​(ActorSystem system)
        Java API: retrieve the Udp extension for the given system.
        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)
      • cached

        public scala.Option<Dns.Resolved> cached​(java.lang.String name)
        Lookup if a DNS resolved is cached. The exact behavior of caching will depend on the akka.actor.io.dns.resolver that is configured.
        Parameters:
        name - (undocumented)
        Returns:
        (undocumented)
      • resolve

        public scala.Option<Dns.Resolved> resolve​(java.lang.String name,
                                                  ActorSystem system,
                                                  ActorRef sender)
        If an entry is cached return it immediately. If it is not then trigger a resolve and return None.
        Parameters:
        name - (undocumented)
        system - (undocumented)
        sender - (undocumented)
        Returns:
        (undocumented)