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 Type
    Method
    Description
    boolean
    Performs lock acquisition of all the required resources for the given job
    void
    Releases locks of all of the previously acquired resources for the given job
  • Method Details

    • acquireLock

      boolean acquireLock(RuleEngineCronJobModel cronJob)
      Performs lock acquisition of all the required resources for the given job
      Parameters:
      cronJob - - cron job instance
      Returns:
      true in 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