Class InMemoryEngine
java.lang.Object
io.camunda.zeebe.process.test.engine.InMemoryEngine
- All Implemented Interfaces:
ZeebeTestEngine
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryEngine(io.grpc.Server grpcServer, io.camunda.zeebe.stream.impl.StreamProcessor streamProcessor, io.camunda.zeebe.process.test.engine.GrpcToLogStreamGateway gateway, io.camunda.zeebe.db.ZeebeDb<io.camunda.zeebe.protocol.ZbColumnFamilies> database, io.camunda.zeebe.logstreams.log.LogStream logStream, io.camunda.zeebe.scheduler.ActorScheduler scheduler, RecordStreamSource recordStream, io.camunda.zeebe.scheduler.clock.ControlledActorClock clock, io.camunda.zeebe.process.test.engine.EngineStateMonitor engineStateMonitor) -
Method Summary
Modifier and TypeMethodDescriptionio.camunda.zeebe.client.ZeebeClientvoidincreaseTime(Duration timeToAdd) voidstart()voidstop()voidwaitForBusyState(Duration timeout) voidwaitForIdleState(Duration timeout)
-
Constructor Details
-
InMemoryEngine
public InMemoryEngine(io.grpc.Server grpcServer, io.camunda.zeebe.stream.impl.StreamProcessor streamProcessor, io.camunda.zeebe.process.test.engine.GrpcToLogStreamGateway gateway, io.camunda.zeebe.db.ZeebeDb<io.camunda.zeebe.protocol.ZbColumnFamilies> database, io.camunda.zeebe.logstreams.log.LogStream logStream, io.camunda.zeebe.scheduler.ActorScheduler scheduler, RecordStreamSource recordStream, io.camunda.zeebe.scheduler.clock.ControlledActorClock clock, io.camunda.zeebe.process.test.engine.EngineStateMonitor engineStateMonitor)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceZeebeTestEngine
-
stop
public void stop()- Specified by:
stopin interfaceZeebeTestEngine
-
getRecordStreamSource
- Specified by:
getRecordStreamSourcein interfaceZeebeTestEngine
-
createClient
public io.camunda.zeebe.client.ZeebeClient createClient()- Specified by:
createClientin interfaceZeebeTestEngine
-
getGatewayAddress
- Specified by:
getGatewayAddressin interfaceZeebeTestEngine
-
increaseTime
- Specified by:
increaseTimein interfaceZeebeTestEngine
-
waitForIdleState
- Specified by:
waitForIdleStatein interfaceZeebeTestEngine- Throws:
InterruptedExceptionTimeoutException
-
waitForBusyState
- Specified by:
waitForBusyStatein interfaceZeebeTestEngine- Throws:
InterruptedExceptionTimeoutException
-