object Dns extends ExtensionId[DnsExt] with ExtensionIdProvider
- Alphabetic
- By Inheritance
- Dns
- ExtensionIdProvider
- ExtensionId
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- sealed trait Command extends AnyRef
- case class Resolve(name: String) extends Command with ConsistentHashable with Product with Serializable
- case class Resolved(name: String, ipv4: Seq[Inet4Address], ipv6: Seq[Inet6Address]) extends Command with Product with Serializable
Value Members
-
def
apply(system: ActorSystem): DnsExt
Returns an instance of the extension identified by this ExtensionId instance.
Returns an instance of the extension identified by this ExtensionId instance.
- Definition Classes
- ExtensionId
-
def
cached(name: String)(system: ActorSystem): Option[Resolved]
Lookup if a DNS resolved is cached.
Lookup if a DNS resolved is cached. The exact behavior of caching will depend on the akka.actor.io.dns.resolver that is configured.
-
def
createExtension(system: ExtendedActorSystem): DnsExt
Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.
Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.
- Definition Classes
- Dns → ExtensionId
-
final
def
equals(other: Any): Boolean
- Definition Classes
- ExtensionId → AnyRef → Any
-
def
get(system: ActorSystem): DnsExt
Java API: retrieve the Udp extension for the given system.
Java API: retrieve the Udp extension for the given system.
- Definition Classes
- Dns → ExtensionId
-
final
def
hashCode(): Int
- Definition Classes
- ExtensionId → AnyRef → Any
-
def
lookup(): Dns.type
Returns the canonical ExtensionId for this Extension
Returns the canonical ExtensionId for this Extension
- Definition Classes
- Dns → ExtensionIdProvider
-
def
resolve(name: String)(system: ActorSystem, sender: ActorRef): Option[Resolved]
If an entry is cached return it immediately.
If an entry is cached return it immediately. If it is not then trigger a resolve and return None.
- object Resolved extends Serializable