com.artima.place
Interface ProgressEventGenerator

All Known Implementing Classes:
MulticastDiscoveryLink, UnicastDiscoveryLink, WebServerLink

public interface ProgressEventGenerator

Interface that enables a client to register interest in receiving progress updates of some activity. This interface may optionally be implemented by Link objects, to enable their clients to receive progress updates during the course of a Link activation. Link objects need not implement this interface.


Method Summary
 void addProgressListener(ProgressListener listener)
          Adds the specified ProgressListener to receive progress events from this object.
 void removeProgressListener(ProgressListener listener)
          Removes the specified ProgressListener so that it no longer receives progress events from this object.
 

Method Detail

addProgressListener

public void addProgressListener(ProgressListener listener)
Adds the specified ProgressListener to receive progress events from this object. If listener is null, no exception is thrown and no action is performed.
Parameters:
listener - the ProgressListener to add

removeProgressListener

public void removeProgressListener(ProgressListener listener)
Removes the specified ProgressListener so that it no longer receives progress events from this object. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this object. If listener is null, no exception is thrown and no action is performed.
Parameters:
listener - the ProgressListener to remove