Package io.camunda.client.protocol.rest
Class JobUpdateRequest
java.lang.Object
io.camunda.client.protocol.rest.JobUpdateRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class JobUpdateRequest
extends Object
JobUpdateRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangeset(JobChangeset changeset) booleanGet changesetThe token identifying a leased job's activation, obtained from `ActivatedJobResult.leaseToken`.A reference key chosen by the user that will be part of all records resulting from this operation.inthashCode()leaseToken(String leaseToken) operationReference(Long operationReference) voidsetChangeset(JobChangeset changeset) voidsetLeaseToken(String leaseToken) voidsetOperationReference(Long operationReference) toString()
-
Field Details
-
JSON_PROPERTY_CHANGESET
- See Also:
-
JSON_PROPERTY_OPERATION_REFERENCE
- See Also:
-
JSON_PROPERTY_LEASE_TOKEN
- See Also:
-
-
Constructor Details
-
JobUpdateRequest
public JobUpdateRequest()
-
-
Method Details
-
changeset
-
getChangeset
Get changeset- Returns:
- changeset
-
setChangeset
-
operationReference
-
getOperationReference
A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. minimum: 1- Returns:
- operationReference
-
setOperationReference
-
leaseToken
-
getLeaseToken
The token identifying a leased job's activation, obtained from `ActivatedJobResult.leaseToken`. For a leased job, a supplied token is validated to prove the command comes from the worker that holds the current lease; a command carrying a stale token is rejected, fencing the job against a superseded activation (for example, after the job timed out or failed and was re-activated by another worker). An update without a token always applies to support operator and bulk updates of leased jobs. Note that this is different from lifecycle requests like complete, fail, and throw-error that always require a token for leased jobs. A job that was activated without a lease requires no token.- Returns:
- leaseToken
-
setLeaseToken
-
equals
-
hashCode
public int hashCode() -
toString
-