@ThreadSafe public class WorkerCounter extends Object implements Executor
| Constructor and Description |
|---|
WorkerCounter(Executor realExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPreviousWorkersFinished(ActorRef<WorkerListener> onFinished)
Calls
WorkerListener.onAllWorkersFinished() on the specified callback after all commands previously
submitted to execute(Runnable), and recursively all commands which they submitted to execute(Runnable), have finished executing. |
void |
execute(Runnable command) |
public WorkerCounter(Executor realExecutor)
public void afterPreviousWorkersFinished(ActorRef<WorkerListener> onFinished)
WorkerListener.onAllWorkersFinished() on the specified callback after all commands previously
submitted to execute(Runnable), and recursively all commands which they submitted to execute(Runnable), have finished executing.Copyright © 2011-2012. All Rights Reserved.