net.named_data.jndn.impl
public class InterestFilterTable extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InterestFilterTable.Entry
An Entry holds an interestFilterId, an InterestFilter and the
OnInterestCallback with its related Face.
|
Constructor and Description |
---|
InterestFilterTable() |
Modifier and Type | Method and Description |
---|---|
void |
getMatchedFilters(Interest interest,
ArrayList matchedFilters)
Find all entries from the interest filter table where the interest conforms
to the entry's filter, and add to the matchedFilters list.
|
void |
setInterestFilter(long interestFilterId,
InterestFilter filter,
OnInterestCallback onInterest,
Face face)
Add a new entry to the table.
|
void |
unsetInterestFilter(long interestFilterId)
Remove the interest filter entry which has the interestFilterId from the
interest filter table.
|
public final void setInterestFilter(long interestFilterId, InterestFilter filter, OnInterestCallback onInterest, Face face)
interestFilterId
- The ID from Node.getNextEntryId().filter
- The InterestFilter for this entry.onInterest
- The callback to call.face
- The face on which was called registerPrefix or
setInterestFilter which is passed to the onInterest callback.public final void getMatchedFilters(Interest interest, ArrayList matchedFilters)
interest
- The interest which may match the filter in multiple entries.matchedFilters
- Add each matching InterestFilterTable.Entry from the
interest filter table. The caller should pass in an empty ArrayList.public final void unsetInterestFilter(long interestFilterId)
interestFilterId
- The ID returned from setInterestFilter.Copyright © 2016. All rights reserved.