Top Fields Constructors Methods
io.vertx.core.dns.impl

public final Class SrvRecordImpl

extends Object
implements SrvRecord, Comparable<SrvRecord>
Class Inheritance
All Implemented Interfaces
java.lang.Comparable, io.vertx.core.dns.SrvRecord
Imports
io.vertx.core.dns.SrvRecord

Author
Norman Maurer

Field Summary

Modifier and TypeField and Description
private final String
private final int
private final int
private final String
private final String
private final String
private final int

Constructor Summary

AccessConstructor and Description
public
SrvRecordImpl(int priority, int weight, int port, String name, String protocol, String service, String target)

Method Summary

Modifier and TypeMethod and Description
public int
compareTo(SrvRecord
the object to be compared.
o
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.

public String
name()

Implements io.vertx.core.dns.SrvRecord.name.

Returns the name for the server being queried.

public int
port()

Implements io.vertx.core.dns.SrvRecord.port.

Returns the port the service is running on.

public int
priority()

Implements io.vertx.core.dns.SrvRecord.priority.

Returns the priority for this service record.

public String
protocol()

Implements io.vertx.core.dns.SrvRecord.protocol.

Returns the protocol for the service being queried (i.e. "_tcp").

public String
service()

Implements io.vertx.core.dns.SrvRecord.service.

Returns the service's name (i.e. "_http").

public String
target()

Implements io.vertx.core.dns.SrvRecord.target.

Returns the name of the host for the service.

public int
weight()

Implements io.vertx.core.dns.SrvRecord.weight.

Returns the weight of this service record.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final String name
portback to summary
private final int port
priorityback to summary
private final int priority
protocolback to summary
private final String protocol
serviceback to summary
private final String service
targetback to summary
private final String target
weightback to summary
private final int weight

Constructor Detail

SrvRecordImplback to summary
public SrvRecordImpl(int priority, int weight, int port, String name, String protocol, String service, String target)

Method Detail

compareToback to summary
public int compareTo(SrvRecord o)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
o:SrvRecord

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Annotations
@Override
nameback to summary
public String name()

Implements io.vertx.core.dns.SrvRecord.name.

Doc from io.vertx.core.dns.SrvRecord.name.

Returns the name for the server being queried.

Annotations
@Override
portback to summary
public int port()

Implements io.vertx.core.dns.SrvRecord.port.

Doc from io.vertx.core.dns.SrvRecord.port.

Returns the port the service is running on.

Annotations
@Override
priorityback to summary
public int priority()

Implements io.vertx.core.dns.SrvRecord.priority.

Doc from io.vertx.core.dns.SrvRecord.priority.

Returns the priority for this service record.

Annotations
@Override
protocolback to summary
public String protocol()

Implements io.vertx.core.dns.SrvRecord.protocol.

Doc from io.vertx.core.dns.SrvRecord.protocol.

Returns the protocol for the service being queried (i.e. "_tcp").

Annotations
@Override
serviceback to summary
public String service()

Implements io.vertx.core.dns.SrvRecord.service.

Doc from io.vertx.core.dns.SrvRecord.service.

Returns the service's name (i.e. "_http").

Annotations
@Override
targetback to summary
public String target()

Implements io.vertx.core.dns.SrvRecord.target.

Doc from io.vertx.core.dns.SrvRecord.target.

Returns the name of the host for the service.

Annotations
@Override
weightback to summary
public int weight()

Implements io.vertx.core.dns.SrvRecord.weight.

Doc from io.vertx.core.dns.SrvRecord.weight.

Returns the weight of this service record.

Annotations
@Override