org.apache.pivot.util.concurrent
Interface TaskListener<V>

Type Parameters:
V - The return type of the task.

public interface TaskListener<V>

Task listener interface.


Method Summary
 void executeFailed(Task<V> task)
          Called when task execution has failed.
 void taskExecuted(Task<V> task)
          Called when the task has completed successfully.
 

Method Detail

taskExecuted

void taskExecuted(Task<V> task)
Called when the task has completed successfully.

Parameters:
task - The source of the task event.

executeFailed

void executeFailed(Task<V> task)
Called when task execution has failed.

Parameters:
task - The source of the task event.