Class ComputationScheduler.FixedSchedulerPool
java.lang.Object
io.reactivex.rxjava3.internal.schedulers.ComputationScheduler.FixedSchedulerPool
- All Implemented Interfaces:
SchedulerMultiWorkerSupport
- Enclosing class:
ComputationScheduler
static final class ComputationScheduler.FixedSchedulerPool
extends Object
implements SchedulerMultiWorkerSupport
-
Nested Class Summary
Nested classes/interfaces inherited from interface SchedulerMultiWorkerSupport
SchedulerMultiWorkerSupport.WorkerCallback -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int(package private) final ComputationScheduler.PoolWorker[](package private) long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateWorkers(int number, SchedulerMultiWorkerSupport.WorkerCallback callback) Creates the given number ofScheduler.Workerinstances that are possibly backed by distinct threads and calls the specifiedConsumerwith them.voidshutdown()
-
Field Details
-
cores
final int cores -
eventLoops
-
n
long n
-
-
Constructor Details
-
FixedSchedulerPool
FixedSchedulerPool(int maxThreads, ThreadFactory threadFactory)
-
-
Method Details
-
getEventLoop
-
shutdown
public void shutdown() -
createWorkers
Description copied from interface:SchedulerMultiWorkerSupportCreates the given number ofScheduler.Workerinstances that are possibly backed by distinct threads and calls the specifiedConsumerwith them.- Specified by:
createWorkersin interfaceSchedulerMultiWorkerSupport- Parameters:
number- the number of workers to create, positivecallback- the callback to send worker instances to
-