Package step.threadpool
Class ThreadPool.WorkerController<T>
java.lang.Object
step.threadpool.ThreadPool.WorkerController<T>
- Enclosing class:
- ThreadPool
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
WorkerController
public WorkerController(step.threadpool.ThreadPool.BatchContext batchContext)
-
-
Method Details
-
interrupt
public void interrupt() -
getWorkerId
public int getWorkerId() -
isParallel
public boolean isParallel()- Returns:
- true if the current batch is running in parallel i.e with more than one worker
-