Search in sources :

Example 1 with CreateProcessInstanceResponseImpl

use of io.camunda.zeebe.client.impl.response.CreateProcessInstanceResponseImpl in project zeebe by zeebe-io.

the class CreateProcessInstanceCommandImpl method send.

@Override
public ZeebeFuture<ProcessInstanceEvent> send() {
    final CreateProcessInstanceRequest request = builder.build();
    final RetriableClientFutureImpl<ProcessInstanceEvent, GatewayOuterClass.CreateProcessInstanceResponse> future = new RetriableClientFutureImpl<>(CreateProcessInstanceResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
    send(request, future);
    return future;
}
Also used : CreateProcessInstanceRequest(io.camunda.zeebe.gateway.protocol.GatewayOuterClass.CreateProcessInstanceRequest) RetriableClientFutureImpl(io.camunda.zeebe.client.impl.RetriableClientFutureImpl) ProcessInstanceEvent(io.camunda.zeebe.client.api.response.ProcessInstanceEvent) CreateProcessInstanceResponseImpl(io.camunda.zeebe.client.impl.response.CreateProcessInstanceResponseImpl)

Example 2 with CreateProcessInstanceResponseImpl

use of io.camunda.zeebe.client.impl.response.CreateProcessInstanceResponseImpl in project zeebe by camunda-cloud.

the class CreateProcessInstanceCommandImpl method send.

@Override
public ZeebeFuture<ProcessInstanceEvent> send() {
    final CreateProcessInstanceRequest request = builder.build();
    final RetriableClientFutureImpl<ProcessInstanceEvent, GatewayOuterClass.CreateProcessInstanceResponse> future = new RetriableClientFutureImpl<>(CreateProcessInstanceResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
    send(request, future);
    return future;
}
Also used : CreateProcessInstanceRequest(io.camunda.zeebe.gateway.protocol.GatewayOuterClass.CreateProcessInstanceRequest) RetriableClientFutureImpl(io.camunda.zeebe.client.impl.RetriableClientFutureImpl) ProcessInstanceEvent(io.camunda.zeebe.client.api.response.ProcessInstanceEvent) CreateProcessInstanceResponseImpl(io.camunda.zeebe.client.impl.response.CreateProcessInstanceResponseImpl)

Example 3 with CreateProcessInstanceResponseImpl

use of io.camunda.zeebe.client.impl.response.CreateProcessInstanceResponseImpl in project zeebe by camunda.

the class CreateProcessInstanceCommandImpl method send.

@Override
public ZeebeFuture<ProcessInstanceEvent> send() {
    final CreateProcessInstanceRequest request = builder.build();
    final RetriableClientFutureImpl<ProcessInstanceEvent, GatewayOuterClass.CreateProcessInstanceResponse> future = new RetriableClientFutureImpl<>(CreateProcessInstanceResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
    send(request, future);
    return future;
}
Also used : CreateProcessInstanceRequest(io.camunda.zeebe.gateway.protocol.GatewayOuterClass.CreateProcessInstanceRequest) RetriableClientFutureImpl(io.camunda.zeebe.client.impl.RetriableClientFutureImpl) ProcessInstanceEvent(io.camunda.zeebe.client.api.response.ProcessInstanceEvent) CreateProcessInstanceResponseImpl(io.camunda.zeebe.client.impl.response.CreateProcessInstanceResponseImpl)

Aggregations

ProcessInstanceEvent (io.camunda.zeebe.client.api.response.ProcessInstanceEvent)3 RetriableClientFutureImpl (io.camunda.zeebe.client.impl.RetriableClientFutureImpl)3 CreateProcessInstanceResponseImpl (io.camunda.zeebe.client.impl.response.CreateProcessInstanceResponseImpl)3 CreateProcessInstanceRequest (io.camunda.zeebe.gateway.protocol.GatewayOuterClass.CreateProcessInstanceRequest)3