public class JobUpdateRetriesCommandImpl extends Object implements UpdateRetriesJobCommandStep1, UpdateRetriesJobCommandStep1.UpdateRetriesJobCommandStep2
UpdateRetriesJobCommandStep1.UpdateRetriesJobCommandStep2
Constructor and Description |
---|
JobUpdateRetriesCommandImpl(GatewayGrpc.GatewayStub asyncStub,
long jobKey) |
Modifier and Type | Method and Description |
---|---|
UpdateRetriesJobCommandStep1.UpdateRetriesJobCommandStep2 |
retries(int retries)
Set the retries of this job.
|
ZeebeFuture<Void> |
send()
Sends the command to the Zeebe broker.
|
public JobUpdateRetriesCommandImpl(GatewayGrpc.GatewayStub asyncStub, long jobKey)
public UpdateRetriesJobCommandStep1.UpdateRetriesJobCommandStep2 retries(int retries)
UpdateRetriesJobCommandStep1
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.
retries
in interface UpdateRetriesJobCommandStep1
retries
- the retries of this job#send()
to complete the command and send it
to the broker.public ZeebeFuture<Void> send()
FinalCommandStep
Call ZeebeFuture.join()
to wait until the response is available.
Future<JobEvent> future = command.send(); JobEvent event = future.join();
send
in interface FinalCommandStep<Void>
Copyright © 2017–2018 camunda services GmbH. All rights reserved.