Interface UpdateJobCommandStep1
- All Known Implementing Classes:
JobUpdateCommandImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated.since 8.8 for removal in 8.9, replaced byUpdateJobCommandStep1.UpdateJobCommandStep2 -
Method Summary
Modifier and TypeMethodDescriptionupdate(JobChangeset jobChangeset) Deprecated.Update the retries and/or the timeout of this job.Deprecated.Update the retries and/or the timeout of this job.updateRetries(int retries) Deprecated.Set the retries of this job.updateTimeout(long timeout) Deprecated.Set the timeout of this job.updateTimeout(Duration timeout) Deprecated.Set the timeout of this job.
-
Method Details
-
update
Deprecated.Update the retries and/or the timeout 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
Deprecated.Update the retries and/or the timeout 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
Deprecated.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
Deprecated.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
Deprecated.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()
-
UpdateJobCommandStep1