Interface RuleCompilationContext
- All Superinterfaces:
TaskContext
- All Known Implementing Classes:
DefaultRuleCompilationContext
The interface for the rule compilation context
-
Method Summary
Modifier and TypeMethodDescriptionvoidClean up the context (usually called before the object destroy)getNextRuleEngineRuleVersion(String moduleName) get the next available rule version for the moduleget the instance ofRuleCompilerServiceget the suspend/resume task managervoidregisterCompilationListeners(String moduleName) register aplication listeners related to rule compilation processresetRuleEngineRuleVersion(String moduleName) Resets the compilation context version to the value associated with rules moduleMethods inherited from interface de.hybris.platform.ruleengine.concurrency.TaskContext
getCurrentTenant, getNumberOfThreads, getThreadFactory, getThreadTimeout
-
Method Details
-
getRuleCompilerService
RuleCompilerService getRuleCompilerService()get the instance ofRuleCompilerService- Returns:
- instance of
RuleCompilerService
-
resetRuleEngineRuleVersion
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
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
Clean up the context (usually called before the object destroy)- Parameters:
moduleName- the rules module name to be monitored by listeners
-
registerCompilationListeners
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
-