com.algosome.common.util
Interface ThreadListener

All Known Implementing Classes:
ThreadListenerAdapter

public interface ThreadListener

Can be used to monitor Thread progress

Author:
Greg Cope

Method Summary
 void notifyOfEvent(java.lang.Object o)
          Called by the thread to notify clients of an event.
 void threadFinished(java.lang.Runnable r)
          Called after the Thread finishes.
 void threadStarted(java.lang.Runnable r)
          Fired when the thread first starts.
 

Method Detail

threadStarted

void threadStarted(java.lang.Runnable r)
Fired when the thread first starts.

Parameters:
r -

threadFinished

void threadFinished(java.lang.Runnable r)
Called after the Thread finishes.

Parameters:
r -

notifyOfEvent

void notifyOfEvent(java.lang.Object o)
Called by the thread to notify clients of an event. This can be used to monitor progress, or notify of exceptions for example.

Parameters:
o -