Record of Interest listener must be set (non-null) for cases of standing Interest that holds until canceled by the application. More...
Public Member Functions | |
InterestRegistration (CCNNetworkManager mgr, Interest i, CCNInterestListener l, Object owner) | |
synchronized boolean | add (ContentObject obj) |
Return true if data was added. | |
synchronized ContentObject | popData () |
This used to be called just data, but its similarity to a simple accessor made the fact that it cleared the data really confusing and error-prone. | |
void | deliver () |
Deliver content to a registered handler. | |
void | run () |
Start a thread to deliver data to a registered handler. | |
Public Attributes | |
final Interest | interest |
Protected Attributes | |
long | nextRefresh |
long | nextRefreshPeriod = SystemConfiguration.INTEREST_REEXPRESSION_DEFAULT |
Package Attributes | |
ContentObject | data = null |
Record of Interest listener must be set (non-null) for cases of standing Interest that holds until canceled by the application.
The listener should be null when a thread is blocked waiting for data, in which case the thread will be blocked on semaphore.
synchronized boolean org.ccnx.ccn.impl.CCNNetworkManager.InterestRegistration.add | ( | ContentObject | obj | ) |
Return true if data was added.
If data is already pending for delivery for this interest, the interest is already consumed and this new data cannot be delivered.
NullPointerException | If obj is null |
synchronized ContentObject org.ccnx.ccn.impl.CCNNetworkManager.InterestRegistration.popData | ( | ) |
This used to be called just data, but its similarity to a simple accessor made the fact that it cleared the data really confusing and error-prone.
.. Pull the available data out for processing.