new InterestFilterEntry(interestFilterId, filter, onInterest)
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 getNextEntryId(). |
filter |
InterestFilter | The InterestFilter for this entry. |
onInterest |
function | The callback to call. |
Methods
getFilter() → {InterestFilter}
Get the InterestFilter given to the constructor.
Returns:
The InterestFilter.
- Type
- InterestFilter
getInterestFilterId() → {number}
Get the interestFilterId given to the constructor.
Returns:
The interestFilterId.
- Type
- number
getOnInterest() → {function}
Get the onInterest callback given to the constructor.
Returns:
The onInterest callback.
- Type
- function