Search in sources :

Example 1 with CompleteJobResponse

use of io.camunda.zeebe.client.api.response.CompleteJobResponse 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 CompleteJobResponse

use of io.camunda.zeebe.client.api.response.CompleteJobResponse in project zeebe by camunda.

the class CompleteJobTest method shouldNotHaveNullResponse.

@Test
public void shouldNotHaveNullResponse() {
    // given
    final CompleteJobCommandStep1 command = client.newCompleteCommand(12);
    // when
    final CompleteJobResponse response = command.send().join();
    // then
    assertThat(response).isNotNull();
}
Also used : CompleteJobCommandStep1(io.camunda.zeebe.client.api.command.CompleteJobCommandStep1) CompleteJobResponse(io.camunda.zeebe.client.api.response.CompleteJobResponse) ClientTest(io.camunda.zeebe.client.util.ClientTest) Test(org.junit.Test)

Example 3 with CompleteJobResponse

use of io.camunda.zeebe.client.api.response.CompleteJobResponse in project zeebe by zeebe-io.

the class CompleteJobTest method shouldNotHaveNullResponse.

@Test
public void shouldNotHaveNullResponse() {
    // given
    final CompleteJobCommandStep1 command = client.newCompleteCommand(12);
    // when
    final CompleteJobResponse response = command.send().join();
    // then
    assertThat(response).isNotNull();
}
Also used : CompleteJobCommandStep1(io.camunda.zeebe.client.api.command.CompleteJobCommandStep1) CompleteJobResponse(io.camunda.zeebe.client.api.response.CompleteJobResponse) ClientTest(io.camunda.zeebe.client.util.ClientTest) Test(org.junit.Test)

Example 4 with CompleteJobResponse

use of io.camunda.zeebe.client.api.response.CompleteJobResponse in project zeebe by zeebe-io.

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 5 with CompleteJobResponse

use of io.camunda.zeebe.client.api.response.CompleteJobResponse in project zeebe by camunda-cloud.

the class CompleteJobTest method shouldNotHaveNullResponse.

@Test
public void shouldNotHaveNullResponse() {
    // given
    final CompleteJobCommandStep1 command = client.newCompleteCommand(12);
    // when
    final CompleteJobResponse response = command.send().join();
    // then
    assertThat(response).isNotNull();
}
Also used : CompleteJobCommandStep1(io.camunda.zeebe.client.api.command.CompleteJobCommandStep1) CompleteJobResponse(io.camunda.zeebe.client.api.response.CompleteJobResponse) ClientTest(io.camunda.zeebe.client.util.ClientTest) Test(org.junit.Test)

Aggregations

CompleteJobResponse (io.camunda.zeebe.client.api.response.CompleteJobResponse)6 CompleteJobCommandStep1 (io.camunda.zeebe.client.api.command.CompleteJobCommandStep1)3 RetriableClientFutureImpl (io.camunda.zeebe.client.impl.RetriableClientFutureImpl)3 CompleteJobResponseImpl (io.camunda.zeebe.client.impl.response.CompleteJobResponseImpl)3 ClientTest (io.camunda.zeebe.client.util.ClientTest)3 CompleteJobRequest (io.camunda.zeebe.gateway.protocol.GatewayOuterClass.CompleteJobRequest)3 Test (org.junit.Test)3