org.ccnx.ccn.impl.CCNNetworkManager.InterestRegistration Class Reference

Record of Interest listener must be set (non-null) for cases of standing Interest that holds until canceled by the application. More...

List of all members.

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

Detailed Description

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.


Member Function Documentation

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.

Exceptions:
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.

Returns:

The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:37 2011 for Content-Centric Networking in Java by  doxygen 1.6.3