com.algosome.common.util
Class ThreadListenerAdapter

java.lang.Object
  extended by com.algosome.common.util.ThreadListenerAdapter
All Implemented Interfaces:
ThreadListener

public class ThreadListenerAdapter
extends java.lang.Object
implements ThreadListener

Empty implementation of the ThreadListener interface to make implementation easier.

Author:
Greg Cope

Constructor Summary
ThreadListenerAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadListenerAdapter

public ThreadListenerAdapter()
Method Detail

threadFinished

public void threadFinished(java.lang.Runnable r)
Description copied from interface: ThreadListener
Called after the Thread finishes.

Specified by:
threadFinished in interface ThreadListener

notifyOfEvent

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

Specified by:
notifyOfEvent in interface ThreadListener

threadStarted

public void threadStarted(java.lang.Runnable r)
Description copied from interface: ThreadListener
Fired when the thread first starts.

Specified by:
threadStarted in interface ThreadListener