Class ReprocessingStreamWriter
- java.lang.Object
-
- io.zeebe.engine.processing.streamprocessor.writers.ReprocessingStreamWriter
-
- All Implemented Interfaces:
TypedCommandWriter,TypedStreamWriter
public final class ReprocessingStreamWriter extends Object implements TypedStreamWriter
-
-
Constructor Summary
Constructors Constructor Description ReprocessingStreamWriter()
-
Method Summary
-
-
-
Method Detail
-
appendRejection
public void appendRejection(TypedRecord<? extends UnpackedObject> command, RejectionType type, String reason)
- Specified by:
appendRejectionin interfaceTypedStreamWriter
-
appendRejection
public void appendRejection(TypedRecord<? extends UnpackedObject> command, RejectionType type, String reason, Consumer<RecordMetadata> metadata)
- Specified by:
appendRejectionin interfaceTypedStreamWriter
-
appendNewEvent
public void appendNewEvent(long key, Intent intent, UnpackedObject value)- Specified by:
appendNewEventin interfaceTypedStreamWriter
-
appendFollowUpEvent
public void appendFollowUpEvent(long key, Intent intent, UnpackedObject value)- Specified by:
appendFollowUpEventin interfaceTypedStreamWriter
-
appendFollowUpEvent
public void appendFollowUpEvent(long key, Intent intent, UnpackedObject value, Consumer<RecordMetadata> metadata)- Specified by:
appendFollowUpEventin interfaceTypedStreamWriter
-
configureSourceContext
public void configureSourceContext(long sourceRecordPosition)
- Specified by:
configureSourceContextin interfaceTypedStreamWriter
-
appendNewCommand
public void appendNewCommand(Intent intent, UnpackedObject value)
- Specified by:
appendNewCommandin interfaceTypedCommandWriter
-
appendFollowUpCommand
public void appendFollowUpCommand(long key, Intent intent, UnpackedObject value)- Specified by:
appendFollowUpCommandin interfaceTypedCommandWriter
-
appendFollowUpCommand
public void appendFollowUpCommand(long key, Intent intent, UnpackedObject value, Consumer<RecordMetadata> metadata)- Specified by:
appendFollowUpCommandin interfaceTypedCommandWriter
-
reset
public void reset()
- Specified by:
resetin interfaceTypedCommandWriter
-
flush
public long flush()
- Specified by:
flushin interfaceTypedCommandWriter- Returns:
- position of new record, negative value on failure
-
getRecords
public List<ReprocessingRecord> getRecords()
-
removeRecord
public void removeRecord(long recordKey, long sourceRecordPosition)
-
-