Class: Entry

InterestFilterTable. Entry

new Entry(interestFilterId, filter, onInterest, face)

InterestFilterTable.Entry holds an interestFilterId, an InterestFilter and the OnInterestCallback with its related Face. Create a new Entry with the given values.
Parameters:
Name Type Description
interestFilterId number The ID from getNextEntryId().
filter InterestFilter The InterestFilter for this entry.
onInterest function The callback to call.
face Face The face on which was called registerPrefix or setInterestFilter which is passed to the onInterest callback.
Source:

Methods

getFace() → {Face}

Get the Face given to the constructor.
Source:
Returns:
The Face.
Type
Face

getFilter() → {InterestFilter}

Get the InterestFilter given to the constructor.
Source:
Returns:
The InterestFilter.
Type
InterestFilter

getInterestFilterId() → {number}

Get the interestFilterId given to the constructor.
Source:
Returns:
The interestFilterId.
Type
number

getOnInterest() → {function}

Get the onInterest callback given to the constructor.
Source:
Returns:
The onInterest callback.
Type
function