public class GridWorkerPool extends Object
| Constructor and Description |
|---|
GridWorkerPool(Executor exec,
IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(GridWorker w)
Schedules runnable task for execution.
|
void |
join(boolean cancel)
Waits for all workers to finish.
|
public GridWorkerPool(Executor exec, IgniteLogger log)
exec - Executor service.log - Logger to use.public void execute(GridWorker w) throws IgniteCheckedException
w - Runnable task.IgniteCheckedException - Thrown if any exception occurred.public void join(boolean cancel)
cancel - Flag to indicate whether workers should be cancelled
before waiting for them to finish.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017