Class OperationInitializerJobScheduler
java.lang.Object
io.deephaven.engine.table.impl.util.ExecutorJobScheduler
io.deephaven.engine.table.impl.util.OperationInitializerJobScheduler
- All Implemented Interfaces:
JobScheduler
An
ExecutorJobScheduler over an OperationInitializer, whose pool is shared and has a fixed number of
threads, and whose parallelism is the scheduler's thread count.
Each job runs once, on whichever thread claims it first: a pool thread, or a thread waiting in
ExecutorJobScheduler.awaitCompletion(java.util.concurrent.CompletableFuture<T>), which runs the jobs no pool thread has started rather than waiting for one to. A waiting
thread therefore blocks only while every job it has not finished is running on another thread, and never on a job
queued behind pool threads that may themselves be waiting, perhaps for a lock the waiting thread holds. An
initializer that runs a job inside submit, as OperationInitializer.NON_PARALLELIZABLE does, makes it
the submitting thread's own work.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.impl.util.JobScheduler
JobScheduler.IterateAction<CONTEXT_TYPE extends JobScheduler.JobThreadContext>, JobScheduler.IterateResumeAction<CONTEXT_TYPE extends JobScheduler.JobThreadContext>, JobScheduler.IterationManager<CONTEXT_TYPE extends JobScheduler.JobThreadContext>, JobScheduler.JobThreadContext, JobScheduler.Submission -
Field Summary
Fields inherited from interface io.deephaven.engine.table.impl.util.JobScheduler
DEFAULT_CONTEXT, DEFAULT_CONTEXT_FACTORY, UNREPORTABLE_JOB_ERROR -
Constructor Summary
ConstructorsConstructorDescriptionOperationInitializerJobScheduler(@NotNull OperationInitializer operationInitializer) -
Method Summary
Methods inherited from class io.deephaven.engine.table.impl.util.ExecutorJobScheduler
awaitCompletion, getAccumulatedPerformance, newHelperPool, submit, threadCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.engine.table.impl.util.JobScheduler
invokeParallel, iterateParallel, iterateParallel, iterateSerial
-
Constructor Details
-
OperationInitializerJobScheduler
public OperationInitializerJobScheduler(@NotNull @NotNull OperationInitializer operationInitializer) -
OperationInitializerJobScheduler
public OperationInitializerJobScheduler()
-