| 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,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SRV other) |
Record.TYPE |
getType()
The payload type.
|
static SRV |
parse(java.io.DataInputStream dis,
byte[] data) |
void |
serialize(java.io.DataOutputStream dos)
The internal method used to serialize Data subclasses.
|
java.lang.String |
toString() |
equals, hashCode, length, toByteArray, toOutputStreampublic final int priority
public final int weight
public final int port
public final DnsName target
public SRV(int priority,
int weight,
int port,
java.lang.String name)
public SRV(int priority,
int weight,
int port,
DnsName name)
public static SRV parse(java.io.DataInputStream dis, byte[] data) throws java.io.IOException
java.io.IOExceptionpublic void serialize(java.io.DataOutputStream dos)
throws java.io.IOException
Datapublic java.lang.String toString()
toString in class java.lang.Objectpublic Record.TYPE getType()
Data