new RegisteredPrefixTable(interestFilterTable)
A RegisteredPrefixTable is an internal class to hold a list of registered
prefixes with information necessary to remove the registration later.
Parameters:
Name | Type | Description |
---|---|---|
interestFilterTable |
InterestFilterTable | See removeRegisteredPrefix(), which may call interestFilterTable.unsetInterestFilter(). |
- Source:
Classes
Methods
add(registeredPrefixId, prefix, relatedInterestFilterId)
Add a new entry to the table. However, if removeRegisteredPrefix was already
called with the registeredPrefixId, don't add an entry and return false.
Parameters:
Name | Type | Description |
---|---|---|
registeredPrefixId |
number | The ID from Node.getNextEntryId(). |
prefix |
Name | The name prefix. |
relatedInterestFilterId |
number | (optional) The related interestFilterId for the filter set in the same registerPrefix operation. If omitted, set to 0. return {boolean} True if added an entry, false if removeRegisteredPrefix was already called with the registeredPrefixId. |
- Source:
removeRegisteredPrefix(registeredPrefixId)
Remove the registered prefix entry with the registeredPrefixId from the
registered prefix table. This does not affect another registered prefix with
a different registeredPrefixId, even if it has the same prefix name. If an
interest filter was automatically created by registerPrefix, also call
interestFilterTable_.unsetInterestFilter to remove it.
If there is no entry with the registeredPrefixId, do nothing.
Parameters:
Name | Type | Description |
---|---|---|
registeredPrefixId |
number | The ID returned from registerPrefix. |
- Source: