Package akka.io
Class Dns
- java.lang.Object
-
- akka.io.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 Akka.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Dns.Command
static class
Dns.Resolve
Deprecated.Use cached(DnsProtocol.Resolve).static class
Dns.Resolve$
Deprecated..static class
Dns.Resolved
Deprecated.Use cached(DnsProtocol.Resolved).static class
Dns.Resolved$
Deprecated.Use cached(DnsProtocol.Resolved).
-
Constructor Summary
Constructors Constructor Description Dns()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static T
apply(ActorSystem system)
static T
apply(ClassicActorSystemProvider system)
scala.Option<DnsProtocol.Resolved>
cached(DnsProtocol.Resolve request)
scala.Option<Dns.Resolved>
cached(java.lang.String name)
Deprecated.Use cached(DnsProtocol.Resolve).static DnsExt
createExtension(ExtendedActorSystem system)
static boolean
equals(java.lang.Object other)
static DnsExt
get(ActorSystem system)
Java API: retrieve the Udp extension for the given system.static DnsExt
get(ClassicActorSystemProvider system)
static int
hashCode()
static Dns$
lookup()
scala.Option<DnsProtocol.Resolved>
resolve(DnsProtocol.Resolve request, ActorSystem system, ActorRef sender)
scala.Option<Dns.Resolved>
resolve(java.lang.String name, ActorSystem system, ActorRef sender)
Deprecated.Use resolve(DnsProtocol.Resolve).
-
-
-
Method Detail
-
lookup
public static Dns$ lookup()
-
createExtension
public static DnsExt createExtension(ExtendedActorSystem system)
-
get
public static DnsExt get(ActorSystem system)
Java API: retrieve the Udp extension for the given system.
-
get
public static DnsExt get(ClassicActorSystemProvider system)
-
apply
public static T apply(ActorSystem system)
-
apply
public static T apply(ClassicActorSystemProvider 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 2.6.0.Lookup if a DNS resolved is cached. The exact behavior of caching will depend on the akka.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 2.6.0.If an entry is cached return it immediately. If it is not then trigger a resolve and return None.
-
cached
public scala.Option<DnsProtocol.Resolved> cached(DnsProtocol.Resolve request)
-
resolve
public scala.Option<DnsProtocol.Resolved> resolve(DnsProtocol.Resolve request, ActorSystem system, ActorRef sender)
-
-