Interface UpdateJobCommandStep1
- All Known Implementing Classes:
UpdateJobCommandImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionupdate(JobChangeset jobChangeset) Update the retries, timeout, and/or priority of this job.Update the retries, timeout, and/or priority of this job.updatePriority(int priority) Set the priority of this job.updateRetries(int retries) Set the retries of this job.updateTimeout(long timeout) Set the timeout of this job.updateTimeout(Duration timeout) Set the timeout of this job.
-
Method Details
-
update
Update the retries, timeout, and/or priority of this job.If the given retries are greater than zero then this job will be picked up again by a job subscription and a related incident will be marked as resolved.
Timeout value passed as a duration is used to calculate a new job deadline. This will happen when the command is processed. The timeout value will be added to the current time then.
- Parameters:
jobChangeset- the changeset of this job, if a field is not provided (equals to null) it will be not updated- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
update
Update the retries, timeout, and/or priority of this job.If the given retries are greater than zero then this job will be picked up again by a job subscription and a related incident will be marked as resolved.
Timeout value passed as a duration is used to calculate a new job deadline. This will happen when the command is processed. The timeout value will be added to the current time then.
- Parameters:
retries- retries the retries of this job, if null it won't be updatedtimeout- the time the timeout of this job, if null it won't be updated- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
updateRetries
Set the retries of this job.If the given retries are greater than zero then this job will be picked up again by a job subscription and a related incident will be marked as resolved.
- Parameters:
retries- the retries of this job- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
updateTimeout
Set the timeout of this job.Timeout value in millis is used to calculate a new job deadline. This will happen when the command is processed. The timeout value will be added to the current time then.
- Parameters:
timeout- the timeout of this job- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
updateTimeout
Set the timeout of this job.Timeout value passed as a duration is used to calculate a new job deadline. This will happen when the command is processed. The timeout value will be added to the current time then.
- Parameters:
timeout- the time as duration (e.g. "Duration.ofMinutes(5)")- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
updatePriority
Set the priority of this job.- Parameters:
priority- the priority of this job- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-