Class: InterestFilterEntry

Face. InterestFilterEntry

new InterestFilterEntry(interestFilterId, filter, closure)

An InterestFilterEntry holds an interestFilterId, an InterestFilter and the OnInterest callback with its related Face. Create a new InterestFilterEntry with the given values.
Parameters:
Name Type Description
interestFilterId number The ID from getNextInterestFilterId().
filter InterestFilter The InterestFilter for this entry.
closure Closure The closure for calling upcall on interest. TODO: Change to a function instead of a Closure object.
Source:

Methods

(static) getNextInterestFilterId() → {number}

Get the next interest filter ID. This just calls Face.RegisteredPrefix.getNextRegisteredPrefixId() so that IDs come from the same pool and won't be confused when removing entries from the two tables.
Source:
Returns:
The next ID.
Type
number

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