use of io.camunda.zeebe.client.impl.RetriableClientFutureImpl in project zeebe by camunda.
the class CompleteJobCommandImpl method send.
@Override
public ZeebeFuture<CompleteJobResponse> send() {
final CompleteJobRequest request = builder.build();
final RetriableClientFutureImpl<CompleteJobResponse, GatewayOuterClass.CompleteJobResponse> future = new RetriableClientFutureImpl<>(CompleteJobResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
send(request, future);
return future;
}
use of io.camunda.zeebe.client.impl.RetriableClientFutureImpl in project zeebe by camunda.
the class CreateProcessInstanceWithResultCommandImpl method send.
@Override
public ZeebeFuture<ProcessInstanceResult> send() {
final CreateProcessInstanceWithResultRequest request = builder.setRequest(createProcessInstanceRequestBuilder).setRequestTimeout(requestTimeout.toMillis()).build();
final RetriableClientFutureImpl<ProcessInstanceResult, GatewayOuterClass.CreateProcessInstanceWithResultResponse> future = new RetriableClientFutureImpl<>(response -> new CreateProcessInstanceWithResultResponseImpl(jsonMapper, response), retryPredicate, streamObserver -> send(request, streamObserver));
send(request, future);
return future;
}
use of io.camunda.zeebe.client.impl.RetriableClientFutureImpl in project zeebe by camunda.
the class DeployProcessCommandImpl method send.
@Override
public ZeebeFuture<DeploymentEvent> send() {
final DeployProcessRequest request = requestBuilder.build();
final RetriableClientFutureImpl<DeploymentEvent, GatewayOuterClass.DeployProcessResponse> future = new RetriableClientFutureImpl<>(DeploymentEventImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
send(request, future);
return future;
}
use of io.camunda.zeebe.client.impl.RetriableClientFutureImpl in project zeebe by camunda.
the class PublishMessageCommandImpl method send.
@Override
public ZeebeFuture<PublishMessageResponse> send() {
final PublishMessageRequest request = builder.build();
final RetriableClientFutureImpl<PublishMessageResponse, GatewayOuterClass.PublishMessageResponse> future = new RetriableClientFutureImpl<>(PublishMessageResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
send(request, future);
return future;
}
use of io.camunda.zeebe.client.impl.RetriableClientFutureImpl in project zeebe by camunda.
the class ResolveIncidentCommandImpl method send.
@Override
public ZeebeFuture<ResolveIncidentResponse> send() {
final ResolveIncidentRequest request = builder.build();
final RetriableClientFutureImpl<ResolveIncidentResponse, GatewayOuterClass.ResolveIncidentResponse> future = new RetriableClientFutureImpl<>(ResolveIncidentResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
send(request, future);
return future;
}
Aggregations