Package com.helix.core.executor
Class BatchExecutor
java.lang.Object
com.helix.core.executor.BatchExecutor
Parallel batch rule executor for bulk context processing using parallel streams and configurable parallelism.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchExecutor(int parallelism) BatchExecutor(SyncExecutor syncExecutor, int parallelism) -
Method Summary
Modifier and TypeMethodDescriptionexecuteBatch(CompiledRule compiledRule, List<ExecutionContext> contexts) Executes a compiled rule against a list of execution contexts in parallel.int
-
Constructor Details
-
BatchExecutor
public BatchExecutor() -
BatchExecutor
public BatchExecutor(int parallelism) -
BatchExecutor
-
-
Method Details
-
executeBatch
public List<ExecutionResult> executeBatch(CompiledRule compiledRule, List<ExecutionContext> contexts) Executes a compiled rule against a list of execution contexts in parallel.- Parameters:
compiledRule- rule instancecontexts- list of contexts to process- Returns:
- List of ExecutionResult objects preserving input order
-
getMetrics
-
getParallelism
public int getParallelism()
-