Package io.deephaven.engine.table.impl
Class OperationInitializationThreadPool
java.lang.Object
io.deephaven.engine.table.impl.OperationInitializationThreadPool
- All Implemented Interfaces:
OperationInitializer
Implementation of OperationInitializer that delegates to a pool of threads.
-
Field Summary
Fields inherited from interface io.deephaven.engine.updategraph.OperationInitializer
NON_PARALLELIZABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the current thread can parallelize operations using this OperationInitialization.int
Number of threads that are potentially available.Future<?>
Submits a task to run in this thread pool.
-
Constructor Details
-
OperationInitializationThreadPool
-
-
Method Details
-
canParallelize
public boolean canParallelize()Description copied from interface:OperationInitializer
Whether the current thread can parallelize operations using this OperationInitialization.- Specified by:
canParallelize
in interfaceOperationInitializer
-
submit
Description copied from interface:OperationInitializer
Submits a task to run in this thread pool.- Specified by:
submit
in interfaceOperationInitializer
-
parallelismFactor
public int parallelismFactor()Description copied from interface:OperationInitializer
Number of threads that are potentially available.- Specified by:
parallelismFactor
in interfaceOperationInitializer
-