org.ccnx.ccn.CCNInterestListener Interface Reference

A listener used to receive callbacks when data arrives matching one of our asynchronously-expressed Interests (expressed with CCNBase.expressInterest(Interest, CCNInterestListener)). More...

List of all members.

Public Member Functions

Interest handleContent (ContentObject data, Interest interest)
 Callback called when we get new results for our query.

Detailed Description

A listener used to receive callbacks when data arrives matching one of our asynchronously-expressed Interests (expressed with CCNBase.expressInterest(Interest, CCNInterestListener)).

Once the listener is called with matching data, the Interest is canceled. As a convenience, the listener can return a new Interest, which will be expressed on its behalf, using it as the callback listener when data is returned in response. This new Interest can be the same as the previous Interest, derived from it, or completely unrelated. Since data consumes Interest, there can only be a single response for one Interest expression.

See also:
CCNBase

Member Function Documentation

Interest org.ccnx.ccn.CCNInterestListener.handleContent ( ContentObject  data,
Interest  interest 
)

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