Class DnsProtocol.Resolved

java.lang.Object
org.apache.pekko.io.dns.DnsProtocol.Resolved
All Implemented Interfaces:
Serializable, NoSerializationVerificationNeeded, scala.Equals, scala.Product
Enclosing class:
DnsProtocol

public static final class DnsProtocol.Resolved extends Object implements NoSerializationVerificationNeeded, scala.Product, Serializable
param: name of the record param: records resource records for the query param: additionalRecords records that relate to the query but are not strictly answers
See Also:
  • Constructor Details

  • Method Details

    • name

      public String name()
    • records

      public scala.collection.immutable.Seq<ResourceRecord> records()
    • additionalRecords

      public scala.collection.immutable.Seq<ResourceRecord> additionalRecords()
    • getRecords

      public List<ResourceRecord> getRecords()
      Java API

      Records for the query

    • getAdditionalRecords

      public List<ResourceRecord> getAdditionalRecords()
      Java API

      Records that relate to the query but are not strickly answers e.g. A records for the records returned for an SRV query.

    • address

      public InetAddress address() throws UnknownHostException
      Return the host, taking into account the "java.net.preferIPv6Addresses" system property.

      Throws:
      UnknownHostException
    • copy

      public DnsProtocol.Resolved copy(String name, scala.collection.immutable.Seq<ResourceRecord> records, scala.collection.immutable.Seq<ResourceRecord> additionalRecords)
    • copy$default$1

      public String copy$default$1()
    • copy$default$2

      public scala.collection.immutable.Seq<ResourceRecord> copy$default$2()
    • copy$default$3

      public scala.collection.immutable.Seq<ResourceRecord> copy$default$3()
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object x$1)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object