public class SRVRecord extends HostAddress implements Comparable<SRVRecord>
Constructor and Description |
---|
SRVRecord(org.minidns.dnsname.DnsName fqdn,
int port,
int priority,
int weight,
List<InetAddress> inetAddresses)
SRV Record constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SRVRecord other) |
int |
getPriority() |
int |
getWeight() |
String |
toString() |
equals, getErrorMessage, getExceptions, getFQDN, getHost, getInetAddresses, getPort, hashCode, setException, setException
public SRVRecord(org.minidns.dnsname.DnsName fqdn, int port, int priority, int weight, List<InetAddress> inetAddresses)
fqdn
- Fully qualified domain nameport
- The connection portpriority
- Priority of the target hostweight
- Relative weight for records with same priorityinetAddresses
- list of addresses.IllegalArgumentException
- fqdn is null or any other field is not in valid range (0-65535).public int getPriority()
public int getWeight()
public int compareTo(SRVRecord other)
compareTo
in interface Comparable<SRVRecord>
public String toString()
toString
in class HostAddress