Interface RuleEngineJobExecutionSynchronizer
-
- All Known Implementing Classes:
DefaultRuleEngineJobExecutionSynchronizer
public interface RuleEngineJobExecutionSynchronizerThis 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanacquireLock(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 Detail
-
acquireLock
boolean acquireLock(RuleEngineCronJobModel cronJob)
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
void releaseLock(RuleEngineCronJobModel cronJob)
Releases locks of all of the previously acquired resources for the given job- Parameters:
cronJob- - cron job instance
-
-