public class FailJobCommandImpl extends Object implements FailJobCommandStep1, FailJobCommandStep1.FailJobCommandStep2
FailJobCommandStep1.FailJobCommandStep2
Constructor and Description |
---|
FailJobCommandImpl(GatewayGrpc.GatewayStub asyncStub,
long key) |
Modifier and Type | Method and Description |
---|---|
FailJobCommandStep1.FailJobCommandStep2 |
retries(int retries)
Set the remaining retries of this job.
|
ZeebeFuture<Void> |
send()
Sends the command to the Zeebe broker.
|
public FailJobCommandImpl(GatewayGrpc.GatewayStub asyncStub, long key)
public FailJobCommandStep1.FailJobCommandStep2 retries(int retries)
FailJobCommandStep1
If the retries are greater than zero then this job will be picked up again by a job subscription. Otherwise, an incident is created for this job.
retries
in interface FailJobCommandStep1
retries
- the remaining retries of this job (e.g. "jobEvent.getRetries() - 1")#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.