Package akka.io
Class Dns$
- java.lang.Object
-
- akka.io.Dns$
-
- All Implemented Interfaces:
ExtensionId<DnsExt>
,ExtensionIdProvider
public class Dns$ extends java.lang.Object implements ExtensionId<DnsExt>, ExtensionIdProvider
-
-
Constructor Summary
Constructors Constructor Description Dns$()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description scala.Option<DnsProtocol.Resolved>
cached(DnsProtocol.Resolve name, ActorSystem system)
Lookup if a DNS resolved is cached.scala.Option<Dns.Resolved>
cached(java.lang.String name, ActorSystem system)
Deprecated.use cached(DnsProtocol.Resolve).DnsExt
createExtension(ExtendedActorSystem system)
Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.DnsExt
get(ActorSystem system)
Java API: retrieve the Udp extension for the given system.DnsExt
get(ClassicActorSystemProvider system)
Returns an instance of the extension identified by this ExtensionId instance.Dns$
lookup()
Returns the canonical ExtensionId for this Extensionscala.Option<DnsProtocol.Resolved>
resolve(DnsProtocol.Resolve name, ActorSystem system, ActorRef sender)
If an entry is cached return it immediately.scala.Option<Dns.Resolved>
resolve(java.lang.String name, ActorSystem system, ActorRef sender)
Deprecated.use resolve(DnsProtocol.Resolve).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.ExtensionId
apply, apply, equals, hashCode
-
-
-
-
Field Detail
-
MODULE$
public static final Dns$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
cached
public scala.Option<Dns.Resolved> cached(java.lang.String name, ActorSystem system)
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 name, ActorSystem system)
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<DnsProtocol.Resolved> resolve(DnsProtocol.Resolve name, ActorSystem system, ActorRef sender)
If an entry is cached return it immediately. If it is not then trigger a resolve and return None.
-
lookup
public Dns$ lookup()
Description copied from interface:ExtensionIdProvider
Returns the canonical ExtensionId for this Extension- Specified by:
lookup
in interfaceExtensionIdProvider
-
createExtension
public DnsExt createExtension(ExtendedActorSystem system)
Description copied from interface:ExtensionId
Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.- Specified by:
createExtension
in interfaceExtensionId<DnsExt>
-
get
public DnsExt get(ActorSystem system)
Java API: retrieve the Udp extension for the given system.- Specified by:
get
in interfaceExtensionId<DnsExt>
-
get
public DnsExt get(ClassicActorSystemProvider system)
Description copied from interface:ExtensionId
Returns an instance of the extension identified by this ExtensionId instance. Java API For extensions written in Scala that are to be used from Java also, this method should be overridden to get correct return type.override def get(system: ClassicActorSystemProvider): TheExtension = super.get(system)
- Specified by:
get
in interfaceExtensionId<DnsExt>
-
-