Interface SchedulerMultiWorkerSupport.WorkerCallback
- All Known Implementing Classes:
ParallelRunOn.MultiWorkerCallback
- Enclosing interface:
SchedulerMultiWorkerSupport
public static interface SchedulerMultiWorkerSupport.WorkerCallback
The callback interface for the
SchedulerMultiWorkerSupport.createWorkers(int, WorkerCallback)
method.-
Method Summary
Modifier and TypeMethodDescriptionvoid
onWorker
(int index, Scheduler.Worker worker) Called with the Worker index and instance.
-
Method Details
-
onWorker
Called with the Worker index and instance.- Parameters:
index
- the worker index, zero-basedworker
- the worker instance
-