use of io.camunda.zeebe.client.impl.response.CreateProcessInstanceWithResultResponseImpl 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.response.CreateProcessInstanceWithResultResponseImpl in project zeebe by zeebe-io.
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.response.CreateProcessInstanceWithResultResponseImpl in project zeebe by camunda-cloud.
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;
}
Aggregations