anthill.nest
Interface ResponseListener

All Known Subinterfaces:
ResponseMonitor
All Known Implementing Classes:
GenericResponseMonitor, GnutantResponseMonitor, GnutantResponseMonitor, QueryResults

public interface ResponseListener

Listener interface which must be implemented by objects that want to be notified about the results of a request.

Version:
$Revision: 1.5 $
Author:
Alberto Montresor

Method Summary
 void complete()
          Upcall method used to notify this listener that the request associated to it has finished to return resources.
 void returnResources(RequestId rid, Resource[] resources)
          Upcall method used to notify this listener that the request associated to it has returned the specified set of resources.
 

Method Detail

returnResources

public void returnResources(RequestId rid,
                            Resource[] resources)
Upcall method used to notify this listener that the request associated to it has returned the specified set of resources.

Parameters:
resources - the resources found.

complete

public void complete()
Upcall method used to notify this listener that the request associated to it has finished to return resources.