public class DNSServiceEntry extends Object implements Comparable<DNSServiceEntry>
| Constructor and Description |
|---|
DNSServiceEntry(String host,
int port,
int priority,
int weight) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DNSServiceEntry o) |
boolean |
equals(Object o) |
String |
getHost()
Returns the hostname.
|
int |
getPort()
Returns the port.
|
int |
getPriority()
Get the priority of this DNS entry, descending priority 0(highest)..Integer.MAX_VALUE(lowest)
|
int |
getWeight()
Get the weight of this DNS entry to compare entries with equal priority, ascending weight
0(lowest)..Integer.MAX_VALUE(highest)
|
int |
hashCode() |
String |
toString()
Return the hostname in the form (hostname:port)
|
public DNSServiceEntry(String host, int port, int priority, int weight)
public int getPriority()
public int getWeight()
public int getPort()
public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public int compareTo(DNSServiceEntry o)
compareTo in interface Comparable<DNSServiceEntry>Comparable.compareTo(java.lang.Object)Copyright © 2019 Nuxeo. All rights reserved.