ecologylab.generic
Interface DispatchTarget

All Known Implementing Classes:
DownloadableFileToDisk, ZipDownload

public interface DispatchTarget

DispatchTarget is a mechanism that enables non-linear flows of control around asynchronous tasks such as networked I/O.

In such cases, when an object makes a call to initiate an asynchronous operation, it passes itself to the service provider, as a DispatchTarget. Usually the result will be an immediate return, followed by a call to the delivery method at some later point in time. Usually, the service provider must guarantee that it will make such calls, even in cases of error.


Method Summary
 void delivery(java.lang.Object o)
          Called, probably later asynchronously, when the requested service is complete.
 

Method Detail

delivery

void delivery(java.lang.Object o)
Called, probably later asynchronously, when the requested service is complete.

Parameters:
o - -- enables an argument of any type to be passed back.