Package com.helix.core.executor
Interface RuleExecutor
- All Known Implementing Classes:
SyncExecutor,VirtualThreadRuleExecutor
public interface RuleExecutor
Interface defining execution contract for compiled rules.
-
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.
-
Method Details
-
execute
ExecutionResult execute(CompiledRule compiledRule, ExecutionContext context) throws RuleExecutionException Executes a compiled rule synchronously using the provided context.- 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
ExecutorMetrics getMetrics()Retrieves execution metrics for this executor instance.- Returns:
- ExecutorMetrics tracking counters and execution timing
-