JBoss Threads 2.0.0.GA

org.jboss.threads
Interface TaskNotifier<R extends Runnable,A>

Type Parameters:
R - the task type
A - the attachment type

public interface TaskNotifier<R extends Runnable,A>

A notifier which is called when tasks start, stop, or fail.


Method Summary
 void failed(R runnable, Throwable reason, A attachment)
          A task has failed.
 void finished(R runnable, A attachment)
          A task has completed.
 void started(R runnable, A attachment)
          A task was started.
 

Method Detail

started

void started(R runnable,
             A attachment)
A task was started.

Parameters:
runnable - the task
attachment - the attachment

failed

void failed(R runnable,
            Throwable reason,
            A attachment)
A task has failed.

Parameters:
runnable - the task
reason - the reason for the failure
attachment - the attachment

finished

void finished(R runnable,
              A attachment)
A task has completed.

Parameters:
runnable - the task
attachment - the attachment

JBoss Threads 2.0.0.GA

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.