Class CheckpointRecordsProcessor
java.lang.Object
io.camunda.zeebe.backup.processing.CheckpointRecordsProcessor
- All Implemented Interfaces:
RecordProcessor,StreamProcessorLifecycleAware
public final class CheckpointRecordsProcessor
extends Object
implements RecordProcessor, StreamProcessorLifecycleAware
Process and replays records related to Checkpoint.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidaddCheckpointListener(CheckpointListener checkpointListener) Registers a listener.voidinit(RecordProcessorContext recordProcessorContext) onProcessingError(Throwable processingException, TypedRecord record, ProcessingResultBuilder processingResultBuilder) voidprocess(TypedRecord record, ProcessingResultBuilder resultBuilder) voidreplay(TypedRecord record) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.stream.api.StreamProcessorLifecycleAware
onClose, onFailed, onPaused, onResumed
-
Constructor Details
-
CheckpointRecordsProcessor
-
-
Method Details
-
init
- Specified by:
initin interfaceRecordProcessor
-
accepts
- Specified by:
acceptsin interfaceRecordProcessor
-
replay
- Specified by:
replayin interfaceRecordProcessor
-
process
- Specified by:
processin interfaceRecordProcessor
-
onProcessingError
public ProcessingResult onProcessingError(Throwable processingException, TypedRecord record, ProcessingResultBuilder processingResultBuilder) - Specified by:
onProcessingErrorin interfaceRecordProcessor
-
addCheckpointListener
Registers a listener. If a checkpoint exists, then the listener will be immediately notified with the current checkpointId.- Parameters:
checkpointListener-
-
onRecovered
- Specified by:
onRecoveredin interfaceStreamProcessorLifecycleAware
-