Package org.apache.pekko.io
Class Dns$
java.lang.Object
org.apache.pekko.io.Dns$
- All Implemented Interfaces:
ExtensionId<DnsExt>,ExtensionIdProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.Option<DnsProtocol.Resolved>cached(DnsProtocol.Resolve name, ActorSystem system) Lookup if a DNS resolved is cached.createExtension(ExtendedActorSystem system) Is used by Pekko to instantiate the Extension identified by this ExtensionId, internal use only.get(ActorSystem system) Java API: retrieve the Udp extension for the given system.get(ClassicActorSystemProvider system) Returns an instance of the extension identified by this ExtensionId instance.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.actor.ExtensionId
apply, apply, equals, hashCode
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Dns$
public Dns$()
-
-
Method Details
-
cached
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<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
Description copied from interface:ExtensionIdProviderReturns the canonical ExtensionId for this Extension- Specified by:
lookupin interfaceExtensionIdProvider
-
createExtension
Description copied from interface:ExtensionIdIs used by Pekko to instantiate the Extension identified by this ExtensionId, internal use only.- Specified by:
createExtensionin interfaceExtensionId<DnsExt>
-
get
Java API: retrieve the Udp extension for the given system.- Specified by:
getin interfaceExtensionId<DnsExt>
-
get
Description copied from interface:ExtensionIdReturns 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:
getin interfaceExtensionId<DnsExt>
-