public class NextHopRecord extends Object implements Decodable
Constructor and Description |
---|
NextHopRecord()
Default constructor.
|
NextHopRecord(ByteBuffer input)
Constructor from wire format.
|
Modifier and Type | Method and Description |
---|---|
int |
getCost() |
int |
getFaceId() |
NextHopRecord |
setCost(int cost)
Set next hop record cost.
|
NextHopRecord |
setFaceId(int faceId)
Set face ID.
|
void |
wireDecode(ByteBuffer input)
Decode the input from its TLV format.
|
void |
wireDecode(net.named_data.jndn.encoding.tlv.TlvDecoder decoder)
Decode data structure from TLV wire format.
|
net.named_data.jndn.util.Blob |
wireEncode()
Encode using a new TLV encoder.
|
void |
wireEncode(net.named_data.jndn.encoding.tlv.TlvEncoder encoder)
Encode as part of an existing encode context.
|
public NextHopRecord()
public NextHopRecord(ByteBuffer input) throws net.named_data.jndn.encoding.EncodingException
input
- wire formatnet.named_data.jndn.encoding.EncodingException
- when decoding failspublic final net.named_data.jndn.util.Blob wireEncode()
public final void wireEncode(net.named_data.jndn.encoding.tlv.TlvEncoder encoder)
encoder
- TlvEncoder instancepublic final void wireDecode(ByteBuffer input) throws net.named_data.jndn.encoding.EncodingException
input
- The input buffer to decode. This reads from position() to
limit(), but does not change the position.net.named_data.jndn.encoding.EncodingException
- For invalid encoding.public void wireDecode(net.named_data.jndn.encoding.tlv.TlvDecoder decoder) throws net.named_data.jndn.encoding.EncodingException
wireDecode
in interface Decodable
decoder
- Instance of TlvDecodernet.named_data.jndn.encoding.EncodingException
- when decoding failspublic int getFaceId()
public NextHopRecord setFaceId(int faceId)
faceId
- face IDpublic int getCost()
public NextHopRecord setCost(int cost)
cost
- next hop record costCopyright © 2016. All rights reserved.