Class RuleInsightsExpiryScheduler

java.lang.Object
com.codebarrel.jira.plugin.automation.schedule.RuleInsightsExpiryScheduler
All Implemented Interfaces:
com.atlassian.sal.api.lifecycle.LifecycleAware

@Component public class RuleInsightsExpiryScheduler extends Object implements com.atlassian.sal.api.lifecycle.LifecycleAware
  • Constructor Details

    • RuleInsightsExpiryScheduler

      @Inject public RuleInsightsExpiryScheduler(com.atlassian.scheduler.SchedulerService schedulerService, RuleInsightsExpiryJob ruleInsightsExpiryJob)
  • Method Details

    • onStart

      public void onStart()
      Specified by:
      onStart in interface com.atlassian.sal.api.lifecycle.LifecycleAware
    • onStop

      public void onStop()
      We don't unschedule the job as in DC we still want it to run in the cluster. If plugin is uninstalled it leaves the job in place and since there is no runner, it simply wont run.
      Specified by:
      onStop in interface com.atlassian.sal.api.lifecycle.LifecycleAware