public interface SchedulerMultiWorkerSupport
Scheduler
in a way that when asking for
at most the parallelism level of the Scheduler, those
Scheduler.Worker
instances will be running
with different backing threads.
History: 2.1.8 - experimental
Modifier and Type | Interface and Description |
---|---|
static interface |
SchedulerMultiWorkerSupport.WorkerCallback
The callback interface for the
createWorkers(int, WorkerCallback)
method. |
Modifier and Type | Method and Description |
---|---|
void |
createWorkers(int number,
SchedulerMultiWorkerSupport.WorkerCallback callback)
Creates the given number of
Scheduler.Worker instances
that are possibly backed by distinct threads
and calls the specified Consumer with them. |
void createWorkers(int number, @NonNull SchedulerMultiWorkerSupport.WorkerCallback callback)
Scheduler.Worker
instances
that are possibly backed by distinct threads
and calls the specified Consumer
with them.number
- the number of workers to create, positivecallback
- the callback to send worker instances toCopyright © 2019. All rights reserved.