org.gjt.rec.thread
Interface Workforce.Listener

Enclosing interface:
Workforce

public static interface Workforce.Listener

An implementation of this interface may listen to a Workforce object and be notified when certain notable events occur within it. It is primarily intended for testing the workforce class.

See Also:
Workforce

Method Summary
 void notifyControllerStarted()
           
 void notifyControllerStopped()
           
 void notifyJobComplete(Runnable job)
           
 void notifyJobFailed(Runnable job, Throwable t)
           
 void notifyJobRecalled(Runnable job)
           
 void notifyJobScheduled(Runnable job)
           
 void notifyListenerAttached()
           
 void notifyListenerDetached()
           
 void notifyThreadBorrowed(Thread t)
           
 void notifyThreadCreated(Thread t)
           
 void notifyThreadFailed(Thread t)
           
 void notifyThreadGivenJob(Thread t, Runnable job)
           
 void notifyThreadRemovedFromPool(Thread t)
           
 void notifyThreadReturned(Thread t)
           
 

Method Detail

notifyJobScheduled

public void notifyJobScheduled(Runnable job)

notifyJobRecalled

public void notifyJobRecalled(Runnable job)

notifyControllerStarted

public void notifyControllerStarted()

notifyControllerStopped

public void notifyControllerStopped()

notifyThreadCreated

public void notifyThreadCreated(Thread t)

notifyThreadBorrowed

public void notifyThreadBorrowed(Thread t)

notifyThreadGivenJob

public void notifyThreadGivenJob(Thread t,
                                 Runnable job)

notifyJobComplete

public void notifyJobComplete(Runnable job)

notifyJobFailed

public void notifyJobFailed(Runnable job,
                            Throwable t)

notifyThreadReturned

public void notifyThreadReturned(Thread t)

notifyThreadFailed

public void notifyThreadFailed(Thread t)

notifyThreadRemovedFromPool

public void notifyThreadRemovedFromPool(Thread t)

notifyListenerAttached

public void notifyListenerAttached()

notifyListenerDetached

public void notifyListenerDetached()