public class FibEntry extends Object implements Decodable
| Constructor and Description |
|---|
FibEntry()
Default constructor.
|
FibEntry(ByteBuffer input)
Constructor from wire format.
|
| Modifier and Type | Method and Description |
|---|---|
FibEntry |
addNextHopRecord(NextHopRecord record)
Add NextHop records.
|
List<NextHopRecord> |
getNextHopRecords() |
net.named_data.jndn.Name |
getPrefix() |
FibEntry |
setNextHopRecords(List<NextHopRecord> records)
Set NextHop records.
|
FibEntry |
setPrefix(net.named_data.jndn.Name name)
Set FIB entry name.
|
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 FibEntry()
public FibEntry(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 Decodabledecoder - Instance of TlvDecodernet.named_data.jndn.encoding.EncodingException - when decoding failspublic net.named_data.jndn.Name getPrefix()
public FibEntry setPrefix(net.named_data.jndn.Name name)
name - New name for the FIB entrypublic List<NextHopRecord> getNextHopRecords()
public FibEntry setNextHopRecords(List<NextHopRecord> records)
records - List of NextHop records. Previously associated records will be replaced.public FibEntry addNextHopRecord(NextHopRecord record)
record - NextHopRecord instanceCopyright © 2016. All rights reserved.