public final class SrvRecordImpl extends Object implements SrvRecord, Comparable<SrvRecord>
| Constructor and Description |
|---|
SrvRecordImpl(int priority,
int weight,
int port,
String name,
String protocol,
String service,
String target) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SrvRecord o) |
String |
name()
Returns the name for the server being queried.
|
int |
port()
Returns the port the service is running on.
|
int |
priority()
Returns the priority for this service record.
|
String |
protocol()
Returns the protocol for the service being queried (i.e.
|
String |
service()
Returns the service's name (i.e.
|
String |
target()
Returns the name of the host for the service.
|
int |
weight()
Returns the weight of this service record.
|
public int priority()
SrvRecordpublic int weight()
SrvRecordpublic int port()
SrvRecordpublic String name()
SrvRecordpublic String protocol()
SrvRecordpublic String service()
SrvRecordpublic String target()
SrvRecordpublic int compareTo(SrvRecord o)
compareTo in interface Comparable<SrvRecord>Copyright © 2020. All rights reserved.