Interface RuleCompilationContext
-
- All Superinterfaces:
TaskContext
- All Known Implementing Classes:
DefaultRuleCompilationContext
public interface RuleCompilationContext extends TaskContext
The interface for the rule compilation context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanup(java.lang.String moduleName)Clean up the context (usually called before the object destroy)java.lang.LonggetNextRuleEngineRuleVersion(java.lang.String moduleName)get the next available rule version for the moduleRuleCompilerServicegetRuleCompilerService()get the instance ofRuleCompilerServiceSuspendResumeTaskManagergetSuspendResumeTaskManager()get the suspend/resume task managervoidregisterCompilationListeners(java.lang.String moduleName)register aplication listeners related to rule compilation processjava.util.concurrent.atomic.AtomicLongresetRuleEngineRuleVersion(java.lang.String moduleName)Resets the compilation context version to the value associated with rules module-
Methods inherited from interface de.hybris.platform.ruleengine.concurrency.TaskContext
getCurrentTenant, getNumberOfThreads, getThreadFactory, getThreadTimeout
-
-
-
-
Method Detail
-
getRuleCompilerService
RuleCompilerService getRuleCompilerService()
get the instance ofRuleCompilerService- Returns:
- instance of
RuleCompilerService
-
resetRuleEngineRuleVersion
java.util.concurrent.atomic.AtomicLong resetRuleEngineRuleVersion(java.lang.String moduleName)
Resets the compilation context version to the value associated with rules module- Parameters:
moduleName- the module name for the series of rules to compile- Returns:
- the instance of
AtomicLongkeeping the module rules version
-
getNextRuleEngineRuleVersion
java.lang.Long getNextRuleEngineRuleVersion(java.lang.String moduleName)
get the next available rule version for the module- Parameters:
moduleName- the module name for the series of rules to compile- Returns:
- a version number
-
cleanup
void cleanup(java.lang.String moduleName)
Clean up the context (usually called before the object destroy)- Parameters:
moduleName- the rules module name to be monitored by listeners
-
registerCompilationListeners
void registerCompilationListeners(java.lang.String moduleName)
register aplication listeners related to rule compilation process- Parameters:
moduleName- the rules module name to be monitored by listeners
-
getSuspendResumeTaskManager
SuspendResumeTaskManager getSuspendResumeTaskManager()
get the suspend/resume task manager- Returns:
- instance of
SuspendResumeTaskManager
-
-