Package com.helix.core.executor
Class SyncExecutor
java.lang.Object
com.helix.core.executor.SyncExecutor
- All Implemented Interfaces:
RuleExecutor
Synchronous implementation of
RuleExecutor executing rules in the calling thread.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(CompiledRule compiledRule, ExecutionContext context) Executes a compiled rule synchronously using the provided context.Retrieves execution metrics for this executor instance.
-
Constructor Details
-
SyncExecutor
public SyncExecutor() -
SyncExecutor
-
-
Method Details
-
execute
public ExecutionResult execute(CompiledRule compiledRule, ExecutionContext context) throws RuleExecutionException Description copied from interface:RuleExecutorExecutes a compiled rule synchronously using the provided context.- Specified by:
executein interfaceRuleExecutor- Parameters:
compiledRule- rule instance to executecontext- execution context containing variable bindings- Returns:
- ExecutionResult containing output value or error details
- Throws:
RuleExecutionException- if execution fails unexpectedly
-
getMetrics
Description copied from interface:RuleExecutorRetrieves execution metrics for this executor instance.- Specified by:
getMetricsin interfaceRuleExecutor- Returns:
- ExecutorMetrics tracking counters and execution timing
-