Class Dns

  • Direct Known Subclasses:
    SimpleDnsCache

    public abstract class Dns
    extends java.lang.Object
    Not for user extension.

    This used to be a supported extension point but will be removed in future versions of Apache Pekko.

    • 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.
      • apply

        public static T apply​(ActorSystem system)
      • hashCode

        public static final int hashCode()
      • equals

        public static final boolean equals​(java.lang.Object other)
      • cached

        public scala.Option<Dns.Resolved> cached​(java.lang.String name)
        Deprecated.
        Use cached(DnsProtocol.Resolve). Since Akka 2.6.0.
        Lookup if a DNS resolved is cached. The exact behavior of caching will depend on the pekko.actor.io.dns.resolver that is configured.
      • resolve

        public scala.Option<Dns.Resolved> resolve​(java.lang.String name,
                                                  ActorSystem system,
                                                  ActorRef sender)
        Deprecated.
        Use resolve(DnsProtocol.Resolve). Since Akka 2.6.0.
        If an entry is cached return it immediately. If it is not then trigger a resolve and return None.