Search in sources :

Example 1 with WaitForIdleStateRequest

use of io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.WaitForIdleStateRequest in project zeebe-process-test by camunda-cloud.

the class ContainerizedEngine method waitForIdleState.

@Override
public void waitForIdleState(final Duration timeout) {
    final ManagedChannel channel = getChannel();
    final EngineControlBlockingStub stub = getStub(channel);
    final WaitForIdleStateRequest request = WaitForIdleStateRequest.newBuilder().setTimeout(timeout.toMillis()).build();
    stub.waitForIdleState(request);
    closeChannel(channel);
}
Also used : WaitForIdleStateRequest(io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.WaitForIdleStateRequest) ManagedChannel(io.grpc.ManagedChannel) EngineControlBlockingStub(io.camunda.zeebe.process.test.engine.protocol.EngineControlGrpc.EngineControlBlockingStub)

Example 2 with WaitForIdleStateRequest

use of io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.WaitForIdleStateRequest in project zeebe-process-test by camunda.

the class ContainerizedEngine method waitForIdleState.

@Override
public void waitForIdleState(final Duration timeout) {
    final ManagedChannel channel = getChannel();
    final EngineControlBlockingStub stub = getStub(channel);
    final WaitForIdleStateRequest request = WaitForIdleStateRequest.newBuilder().setTimeout(timeout.toMillis()).build();
    stub.waitForIdleState(request);
    closeChannel(channel);
}
Also used : WaitForIdleStateRequest(io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.WaitForIdleStateRequest) ManagedChannel(io.grpc.ManagedChannel) EngineControlBlockingStub(io.camunda.zeebe.process.test.engine.protocol.EngineControlGrpc.EngineControlBlockingStub)

Aggregations

EngineControlBlockingStub (io.camunda.zeebe.process.test.engine.protocol.EngineControlGrpc.EngineControlBlockingStub)2 WaitForIdleStateRequest (io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.WaitForIdleStateRequest)2 ManagedChannel (io.grpc.ManagedChannel)2