use of io.camunda.zeebe.engine.state.ZeebeDbState in project zeebe by camunda-cloud.
the class ZeebeStateRule method before.
@Override
protected void before() throws Throwable {
tempFolder.create();
db = createNewDb();
zeebeState = new ZeebeDbState(partition, db, db.createContext());
}
use of io.camunda.zeebe.engine.state.ZeebeDbState in project zeebe by camunda.
the class StreamProcessor method recoverState.
private ZeebeDbState recoverState() {
final TransactionContext transactionContext = zeebeDb.createContext();
final ZeebeDbState zeebeState = new ZeebeDbState(partitionId, zeebeDb, transactionContext);
processingContext.transactionContext(transactionContext);
processingContext.zeebeState(zeebeState);
processingContext.eventApplier(eventApplierFactory.apply(zeebeState));
return zeebeState;
}
Aggregations