public class SRV extends Data implements Comparable<SRV>
Modifier and Type | Field and Description |
---|---|
DnsName |
name
Deprecated.
use
target instead. |
int |
port
The target port.
|
int |
priority
The priority of this service.
|
DnsName |
target
The target server.
|
int |
weight
The weight of this service.
|
Constructor and Description |
---|
SRV(int priority,
int weight,
int port,
DnsName name) |
SRV(int priority,
int weight,
int port,
String name) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SRV other) |
Record.TYPE |
getType()
The payload type.
|
static SRV |
parse(DataInputStream dis,
byte[] data) |
void |
serialize(DataOutputStream dos)
The internal method used to serialize Data subclasses.
|
String |
toString() |
equals, hashCode, length, toByteArray, toOutputStream
public final int priority
public final int weight
public final int port
@Deprecated public final DnsName name
target
instead.public static SRV parse(DataInputStream dis, byte[] data) throws IOException
IOException
public void serialize(DataOutputStream dos) throws IOException
Data
serialize
in class Data
dos
- the output stream to serialize to.IOException
- if an I/O error occurs.public Record.TYPE getType()
Data
public int compareTo(SRV other)
compareTo
in interface Comparable<SRV>