Search in sources :

Example 1 with CreateProcessInstanceWithResultResponseImpl

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;
}
Also used : CreateProcessInstanceWithResultRequest(io.camunda.zeebe.gateway.protocol.GatewayOuterClass.CreateProcessInstanceWithResultRequest) CreateProcessInstanceWithResultResponseImpl(io.camunda.zeebe.client.impl.response.CreateProcessInstanceWithResultResponseImpl) ProcessInstanceResult(io.camunda.zeebe.client.api.response.ProcessInstanceResult) RetriableClientFutureImpl(io.camunda.zeebe.client.impl.RetriableClientFutureImpl)

Example 2 with CreateProcessInstanceWithResultResponseImpl

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;
}
Also used : CreateProcessInstanceWithResultRequest(io.camunda.zeebe.gateway.protocol.GatewayOuterClass.CreateProcessInstanceWithResultRequest) CreateProcessInstanceWithResultResponseImpl(io.camunda.zeebe.client.impl.response.CreateProcessInstanceWithResultResponseImpl) ProcessInstanceResult(io.camunda.zeebe.client.api.response.ProcessInstanceResult) RetriableClientFutureImpl(io.camunda.zeebe.client.impl.RetriableClientFutureImpl)

Example 3 with CreateProcessInstanceWithResultResponseImpl

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;
}
Also used : CreateProcessInstanceWithResultRequest(io.camunda.zeebe.gateway.protocol.GatewayOuterClass.CreateProcessInstanceWithResultRequest) CreateProcessInstanceWithResultResponseImpl(io.camunda.zeebe.client.impl.response.CreateProcessInstanceWithResultResponseImpl) ProcessInstanceResult(io.camunda.zeebe.client.api.response.ProcessInstanceResult) RetriableClientFutureImpl(io.camunda.zeebe.client.impl.RetriableClientFutureImpl)

Aggregations

ProcessInstanceResult (io.camunda.zeebe.client.api.response.ProcessInstanceResult)3 RetriableClientFutureImpl (io.camunda.zeebe.client.impl.RetriableClientFutureImpl)3 CreateProcessInstanceWithResultResponseImpl (io.camunda.zeebe.client.impl.response.CreateProcessInstanceWithResultResponseImpl)3 CreateProcessInstanceWithResultRequest (io.camunda.zeebe.gateway.protocol.GatewayOuterClass.CreateProcessInstanceWithResultRequest)3