public class SRVRecord extends HostAddress implements java.lang.Comparable<SRVRecord>
Constructor and Description |
---|
SRVRecord(java.lang.String fqdn,
int port,
int priority,
int weight)
Create a new SRVRecord
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SRVRecord other) |
int |
getPriority() |
int |
getWeight() |
java.lang.String |
toString() |
equals, getErrorMessage, getFQDN, getPort, hashCode, setException
public SRVRecord(java.lang.String fqdn, int port, int priority, int weight)
fqdn
- Fully qualified domain nameport
- The connection portpriority
- Priority of the target hostweight
- Relative weight for records with same priorityjava.lang.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 java.lang.Comparable<SRVRecord>
public java.lang.String toString()
toString
in class HostAddress