Search in sources :

Example 1 with RetriableClientFutureImpl

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

Example 2 with RetriableClientFutureImpl

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;
}
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 RetriableClientFutureImpl

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

Example 4 with RetriableClientFutureImpl

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

Example 5 with RetriableClientFutureImpl

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

Aggregations

RetriableClientFutureImpl (io.camunda.zeebe.client.impl.RetriableClientFutureImpl)38 DeploymentEvent (io.camunda.zeebe.client.api.response.DeploymentEvent)5 DeploymentEventImpl (io.camunda.zeebe.client.impl.response.DeploymentEventImpl)5 CancelProcessInstanceResponse (io.camunda.zeebe.client.api.response.CancelProcessInstanceResponse)3 CompleteJobResponse (io.camunda.zeebe.client.api.response.CompleteJobResponse)3 FailJobResponse (io.camunda.zeebe.client.api.response.FailJobResponse)3 ProcessInstanceEvent (io.camunda.zeebe.client.api.response.ProcessInstanceEvent)3 ProcessInstanceResult (io.camunda.zeebe.client.api.response.ProcessInstanceResult)3 PublishMessageResponse (io.camunda.zeebe.client.api.response.PublishMessageResponse)3 ResolveIncidentResponse (io.camunda.zeebe.client.api.response.ResolveIncidentResponse)3 SetVariablesResponse (io.camunda.zeebe.client.api.response.SetVariablesResponse)3 Topology (io.camunda.zeebe.client.api.response.Topology)3 UpdateRetriesJobResponse (io.camunda.zeebe.client.api.response.UpdateRetriesJobResponse)3 CancelProcessInstanceResponseImpl (io.camunda.zeebe.client.impl.response.CancelProcessInstanceResponseImpl)3 CompleteJobResponseImpl (io.camunda.zeebe.client.impl.response.CompleteJobResponseImpl)3 CreateProcessInstanceResponseImpl (io.camunda.zeebe.client.impl.response.CreateProcessInstanceResponseImpl)3 CreateProcessInstanceWithResultResponseImpl (io.camunda.zeebe.client.impl.response.CreateProcessInstanceWithResultResponseImpl)3 FailJobResponseImpl (io.camunda.zeebe.client.impl.response.FailJobResponseImpl)3 PublishMessageResponseImpl (io.camunda.zeebe.client.impl.response.PublishMessageResponseImpl)3 ResolveIncidentResponseImpl (io.camunda.zeebe.client.impl.response.ResolveIncidentResponseImpl)3