Class JobTriggerUpdates

java.lang.Object
org.graylog.scheduler.JobTriggerUpdates

public class JobTriggerUpdates extends Object
Convenience factory to create JobTriggerUpdate objects.
  • Constructor Details

  • Method Details

    • scheduleNextExecution

      public JobTriggerUpdate scheduleNextExecution()
      Returns a job trigger update that instructs the scheduler to execute the trigger again based on its schedule configuration.
      Returns:
      the job trigger update
    • scheduleNextExecution

      public JobTriggerUpdate scheduleNextExecution(JobTriggerData data)
      Returns a job trigger update that instructs the scheduler to execute the trigger again based on its schedule configuration. It also includes the given JobTriggerData object in the trigger update.
      Returns:
      the job trigger update
    • retryIn

      public JobTriggerUpdate retryIn(long duration, TimeUnit unit)
      Returns a job trigger update that instructs the scheduler to execute the trigger again in the future after the given duration. (basically "time now" + duration)
      Parameters:
      duration - the duration to wait until executing the trigger again
      unit - the duration unit
      Returns:
      the job trigger update