public class SRVRecord extends HostAddress implements Comparable<SRVRecord>
| Constructor and Description |
|---|
SRVRecord(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() |
String |
toString() |
equals, getErrorMessage, getException, getFQDN, getPort, hashCode, setExceptionpublic SRVRecord(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 priorityIllegalArgumentException - 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