Package org.apache.pekko.io.dns
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 Summary
ConstructorsConstructorDescriptionResolved(String name, scala.collection.immutable.Seq<ResourceRecord> records, scala.collection.immutable.Seq<ResourceRecord> additionalRecords) -
Method Summary
Modifier and TypeMethodDescriptionscala.collection.immutable.Seq<ResourceRecord>address()Return the host, taking into account the "java.net.preferIPv6Addresses" system property.booleancopy(String name, scala.collection.immutable.Seq<ResourceRecord> records, scala.collection.immutable.Seq<ResourceRecord> additionalRecords) scala.collection.immutable.Seq<ResourceRecord>scala.collection.immutable.Seq<ResourceRecord>booleanJava APIJava APIinthashCode()name()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>scala.collection.immutable.Seq<ResourceRecord>records()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
Resolved
public Resolved(String name, scala.collection.immutable.Seq<ResourceRecord> records, scala.collection.immutable.Seq<ResourceRecord> additionalRecords)
-
-
Method Details
-
name
-
records
-
additionalRecords
-
getRecords
Java APIRecords for the query
-
getAdditionalRecords
Java APIRecords that relate to the query but are not strickly answers e.g. A records for the records returned for an SRV query.
-
address
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
-
copy$default$2
-
copy$default$3
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-