Class CollectionScheduler

  • All Implemented Interfaces:
    com.atlassian.sal.api.lifecycle.LifecycleAware

    public class CollectionScheduler
    extends Object
    implements com.atlassian.sal.api.lifecycle.LifecycleAware
    • Field Detail

      • INSTANCE_KEY

        public static final String INSTANCE_KEY
      • SCHEDULER_KEY

        public static final String SCHEDULER_KEY
    • Constructor Detail

      • CollectionScheduler

        @Inject
        public CollectionScheduler​(DataCollectionJob dataCollectionJob,
                                   com.atlassian.sal.api.scheduling.PluginScheduler pluginScheduler)
    • Method Detail

      • onStart

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

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

        public void reschedule​(Date jobStart,
                               Long intervalMilliSeconds)
      • rescheduleForLater

        public void rescheduleForLater()