com.hammurapi.util.concurrent
Interface TaskCounter


public interface TaskCounter

Callback interface for tasks created by synapses. Flow implementations provide implementation of this interface for synchronization purposes, e.g. to wait for completion of all flow tasks.

Author:
Pavel Vlasov

Method Summary
 void onTaskCreated(Runnable task)
          Invoked when a new task has been created and about to be sent to execution.
 void onTaskFinished(Runnable task)
          Invoked when a task finished execution.
 

Method Detail

onTaskCreated

void onTaskCreated(Runnable task)
Invoked when a new task has been created and about to be sent to execution.

Parameters:
task -

onTaskFinished

void onTaskFinished(Runnable task)
Invoked when a task finished execution.

Parameters:
task -