Class BatchManager
java.lang.Object
org.ojalgo.data.batch.BatchManager
When you're going to instantiate multiple
BatchNode:s and you want them to share some properties,
this is a convenient alternative. Just create a BatchManager, configure it, and use it to create
the BatchNode.Builder:s using newNodeBuilder(String, DataInterpreter).-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Fileprivate ExecutorServiceprivate Integerprivate booleanprivate IntSupplierprivate Integer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose of all files associated with nodes instantiated from this manager.executor(ExecutorService executor) fragmentation(int fragmentation) managed(boolean managed) <T> BatchNode.Builder<T> newNodeBuilder(String nodeName, DataInterpreter<T> dataInterpreter) parallelism(int parallelism) parallelism(IntSupplier parallelism) queue(int capacity)
-
Field Details
-
myBatchRootDirectory
-
myExecutor
-
myFragmentation
-
myManaged
private boolean myManaged -
myParallelism
-
myQueueCapacity
-
-
Constructor Details
-
BatchManager
-
-
Method Details
-
dispose
public void dispose()Dispose of all files associated with nodes instantiated from this manager. It's recommended that you callBatchNode.dispose()on the individual nodes as you're done with them. This is just a convenient alternative to dispose of multiple (all) nodes simultaneously.- See Also:
-
executor
- See Also:
-
fragmentation
- See Also:
-
managed
-
newNodeBuilder
-
parallelism
- See Also:
-
parallelism
- See Also:
-
queue
- See Also:
-