Interface RuleEngineJobExecutionSynchronizer
- All Known Implementing Classes:
DefaultRuleEngineJobExecutionSynchronizer
public interface RuleEngineJobExecutionSynchronizer
This contract is meant to perform synchronization of the rule engine jobs execution through the means of
acquiring and and releasing locks on the respective resources that are essential for the job's execution.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanacquireLock(RuleEngineCronJobModel cronJob) Performs lock acquisition of all the required resources for the given jobvoidreleaseLock(RuleEngineCronJobModel cronJob) Releases locks of all of the previously acquired resources for the given job
-
Method Details
-
acquireLock
Performs lock acquisition of all the required resources for the given job- Parameters:
cronJob- - cron job instance- Returns:
truein case locks have been successfully acquired,false- otherwise
-
releaseLock
Releases locks of all of the previously acquired resources for the given job- Parameters:
cronJob- - cron job instance
-