public class RTRecord extends U16NameBase
nameField, u16Field
Constructor and Description |
---|
RTRecord() |
RTRecord(Name name,
int dclass,
long ttl,
int preference,
Name intermediateHost)
Creates an RT Record from the given data
|
Modifier and Type | Method and Description |
---|---|
Name |
getIntermediateHost()
Gets the host to use as a router.
|
int |
getPreference()
Gets the preference of the route.
|
getNameField, getU16Field, rdataFromString, rrFromWire, rrToString, rrToWire
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
RTRecord()
public RTRecord(Name name, int dclass, long ttl, int preference, Name intermediateHost)
preference
- The preference of the route. Smaller numbers indicate more preferred routes.intermediateHost
- The domain name of the host to use as a router.public int getPreference()
public Name getIntermediateHost()