nl.lxtreme.ols.api.task
Interface TaskStatusListener


public interface TaskStatusListener

Callback interface to listen for state changes of tasks.


Method Summary
<RT> void
taskEnded(Task<RT> aTask, RT aResult)
          Called when a task is ended normally.
<RT> void
taskFailed(Task<RT> aTask, Exception aException)
          Called when a task is started.
<RT> void
taskStarted(Task<RT> aTask)
          Called when a task is started.
 

Method Detail

taskEnded

<RT> void taskEnded(Task<RT> aTask,
                    RT aResult)
Called when a task is ended normally.

Parameters:
aTask - the task that is ended, never null;
aResult - the result of the task, can be null.

taskFailed

<RT> void taskFailed(Task<RT> aTask,
                     Exception aException)
Called when a task is started.

Parameters:
aTask - the task that is started, never null;
aException - the exception that was thrown when the task failed, never null.

taskStarted

<RT> void taskStarted(Task<RT> aTask)
Called when a task is started.

Parameters:
aTask - the task that is started, never null.


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.