Package io.camunda.zeebe.streamprocessor
Class ReplayStateMachine
java.lang.Object
io.camunda.zeebe.streamprocessor.ReplayStateMachine
- All Implemented Interfaces:
LogRecordAwaiter
Represents the state machine to replay events and rebuild the state.
-
Constructor Summary
ConstructorDescriptionReplayStateMachine
(List<RecordProcessor> recordProcessors, StreamProcessorContext context, BooleanSupplier shouldReplayNext) -
Method Summary
-
Constructor Details
-
ReplayStateMachine
public ReplayStateMachine(List<RecordProcessor> recordProcessors, StreamProcessorContext context, BooleanSupplier shouldReplayNext)
-
-
Method Details
-
onRecordAvailable
public void onRecordAvailable()- Specified by:
onRecordAvailable
in interfaceLogRecordAwaiter
-
getLastSourceEventPosition
public long getLastSourceEventPosition() -
getLastReplayedEventPosition
public long getLastReplayedEventPosition() -
close
public void close()
-