object DnsProtocol
Supersedes akka.io.Dns protocol.
Note that one MUST configure akka.io.dns.resolver = async-dns
to make use of this protocol and resolver.
Allows for more detailed lookups, by specifying which records should be checked, and responses can more information than plain IP addresses (e.g. ports for SRV records).
- Source
- DnsProtocol.scala
- Alphabetic
- By Inheritance
- DnsProtocol
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Ip(ipv4: Boolean = true, ipv6: Boolean = true) extends RequestType with Product with Serializable
- sealed trait RequestType extends AnyRef
- final case class Resolve(name: String, requestType: RequestType) extends ConsistentHashable with Product with Serializable
Sending this to the AsyncDnsManager will either lead to a Resolved or a akka.actor.Status.Failure response.
Sending this to the AsyncDnsManager will either lead to a Resolved or a akka.actor.Status.Failure response. If request type are both, both resolutions must succeed or the response is a failure.
- final case class Resolved(name: String, records: Seq[ResourceRecord], additionalRecords: Seq[ResourceRecord]) extends NoSerializationVerificationNeeded with Product with Serializable
- name
of the record
- records
resource records for the query
- additionalRecords
records that relate to the query but are not strictly answers
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def ipRequestType(): RequestType
Java API
- def ipRequestType(ipv4: Boolean, ipv6: Boolean): RequestType
Java API
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def resolve(name: String, requestType: RequestType): Resolve
Java API
- def resolve(name: String): Resolve
Java API
- def srvRequestType(): RequestType
Java API
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Resolve extends Serializable
- object Resolved extends Serializable
- case object Srv extends RequestType with Product with Serializable