Package org.graylog.scheduler
Class JobTriggerUpdates
java.lang.Object
org.graylog.scheduler.JobTriggerUpdates
Convenience factory to create
JobTriggerUpdate
objects.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionJobTriggerUpdates
(JobSchedulerClock clock, JobScheduleStrategies scheduleStrategies, JobTriggerDto trigger) -
Method Summary
Modifier and TypeMethodDescriptionReturns a job trigger update that instructs the scheduler to execute the trigger again in the future after the given duration.Returns a job trigger update that instructs the scheduler to execute the trigger again based on its schedule configuration.Returns a job trigger update that instructs the scheduler to execute the trigger again based on its schedule configuration.
-
Constructor Details
-
JobTriggerUpdates
@Inject public JobTriggerUpdates(JobSchedulerClock clock, JobScheduleStrategies scheduleStrategies, JobTriggerDto trigger)
-
-
Method Details
-
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
Returns a job trigger update that instructs the scheduler to execute the trigger again based on its schedule configuration. It also includes the givenJobTriggerData
object in the trigger update.- Returns:
- the job trigger update
-
retryIn
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 againunit
- the duration unit- Returns:
- the job trigger update
-