Class SRVData
Corresponds to the binary representation of the
SRV (Service) RData
Example
SRVData rdata = SRVData.builder()
.priority(0)
.weight(1)
.port(80)
.target("www.foo.com.").build()
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues -
Method Summary
Modifier and TypeMethodDescriptionstatic SRVData.Builderbuilder()delegate()intgetPort()The port on this target host of this service.intThe priority of this target host.The domain name of the target host.intThe weight field specifies a relative weight for entries with the same priority.Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, valuesMethods inherited from class com.google.common.collect.ForwardingObject
toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
getPriority
public int getPriority()The priority of this target host. A client MUST attempt to contact the target host with the lowest-numbered priority it can reach; target hosts with the same priority SHOULD be tried in an order defined by the weight field. -
getWeight
public int getWeight()The weight field specifies a relative weight for entries with the same priority. Larger weights SHOULD be given a proportionately higher probability of being selected. -
getPort
public int getPort()The port on this target host of this service. -
getTarget
The domain name of the target host. There MUST be one or more address records for this name, the name MUST NOT be an alias. -
delegate
-
builder
-
toBuilder
-