new Entry()
PendingInterestTable.Entry holds the callbacks and other fields for an entry
in the pending interest table.
Create a new Entry with the given fields. Note: You should not call this
directly but call PendingInterestTable.add.
- Source:
Methods
callTimeout()
Call onTimeout_ (if defined). This ignores exceptions from the call to
onTimeout_.
- Source:
clearTimeout()
Clear the timeout timer and reset the timer ID.
- Source:
getInterest() → {Interest}
Get the interest given to the constructor (from Face.expressInterest).
- Source:
Returns:
The interest. NOTE: You must not change the interest
object - if you need to change it then make a copy.
- Type
- Interest
getOnData() → {function}
Get the OnData callback given to the constructor.
- Source:
Returns:
The OnData callback.
- Type
- function
getOnNetworkNack() → {function}
Get the OnNetworkNack callback given to the constructor.
- Source:
Returns:
The OnNetworkNack callback.
- Type
- function
getPendingInterestId() → {number}
Get the pendingInterestId given to the constructor.
- Source:
Returns:
The pendingInterestId.
- Type
- number
setTimeout()
Call setTimeout(callback, milliseconds) and remember the timer ID. If the
timer ID has already been set on a prevous call, do nothing.
- Source: