Class OperationInitializerJobScheduler
java.lang.Object
io.deephaven.engine.table.impl.util.OperationInitializerJobScheduler
- All Implemented Interfaces:
JobScheduler
-
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
-
Field Summary
Fields inherited from interface io.deephaven.engine.table.impl.util.JobScheduler
DEFAULT_CONTEXT, DEFAULT_CONTEXT_FACTORY
-
Constructor Summary
ConstructorDescriptionOperationInitializerJobScheduler
(@NotNull OperationInitializer operationInitializer) -
Method Summary
Modifier and TypeMethodDescriptionThe performance statistics of all runnables that have been completed off-thread, or null if all were executed in the current thread.void
submit
(ExecutionContext executionContext, Runnable runnable, LogOutputAppendable description, Consumer<Exception> onError) Cause runnable to be executed.int
How many threads exist in the job scheduler? The job submitters can use this value to determine how many sub-jobs to split work into.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.engine.table.impl.util.JobScheduler
iterateParallel, iterateParallel, iterateSerial
-
Constructor Details
-
OperationInitializerJobScheduler
public OperationInitializerJobScheduler(@NotNull @NotNull OperationInitializer operationInitializer) -
OperationInitializerJobScheduler
public OperationInitializerJobScheduler()
-
-
Method Details
-
submit
public void submit(ExecutionContext executionContext, Runnable runnable, LogOutputAppendable description, Consumer<Exception> onError) Description copied from interface:JobScheduler
Cause runnable to be executed.- Specified by:
submit
in interfaceJobScheduler
- Parameters:
executionContext
- the execution context to run it underrunnable
- the runnable to executedescription
- a description for loggingonError
- a routine to call if an exception occurs while running runnable
-
getAccumulatedPerformance
Description copied from interface:JobScheduler
The performance statistics of all runnables that have been completed off-thread, or null if all were executed in the current thread.- Specified by:
getAccumulatedPerformance
in interfaceJobScheduler
-
threadCount
public int threadCount()Description copied from interface:JobScheduler
How many threads exist in the job scheduler? The job submitters can use this value to determine how many sub-jobs to split work into.- Specified by:
threadCount
in interfaceJobScheduler
-