Class ReprocessingStreamWriter
- java.lang.Object
-
- io.camunda.zeebe.engine.processing.streamprocessor.writers.ReprocessingStreamWriter
-
- All Implemented Interfaces:
TypedCommandWriter
,TypedEventWriter
,TypedRejectionWriter
,TypedStreamWriter
public final class ReprocessingStreamWriter extends Object implements TypedStreamWriter
-
-
Constructor Summary
Constructors Constructor Description ReprocessingStreamWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendFollowUpCommand(long key, Intent intent, RecordValue value)
void
appendFollowUpEvent(long key, Intent intent, RecordValue value)
void
appendNewCommand(Intent intent, RecordValue value)
void
appendRejection(TypedRecord<? extends RecordValue> command, RejectionType type, String reason)
void
configureSourceContext(long sourceRecordPosition)
long
flush()
List<ReprocessingRecord>
getRecords()
void
removeRecord(long recordKey, long sourceRecordPosition)
void
reset()
-
-
-
Method Detail
-
appendRejection
public void appendRejection(TypedRecord<? extends RecordValue> command, RejectionType type, String reason)
- Specified by:
appendRejection
in interfaceTypedRejectionWriter
-
configureSourceContext
public void configureSourceContext(long sourceRecordPosition)
- Specified by:
configureSourceContext
in interfaceTypedStreamWriter
-
appendFollowUpEvent
public void appendFollowUpEvent(long key, Intent intent, RecordValue value)
- Specified by:
appendFollowUpEvent
in interfaceTypedEventWriter
-
appendNewCommand
public void appendNewCommand(Intent intent, RecordValue value)
- Specified by:
appendNewCommand
in interfaceTypedCommandWriter
-
appendFollowUpCommand
public void appendFollowUpCommand(long key, Intent intent, RecordValue value)
- Specified by:
appendFollowUpCommand
in interfaceTypedCommandWriter
-
reset
public void reset()
- Specified by:
reset
in interfaceTypedCommandWriter
-
flush
public long flush()
- Specified by:
flush
in interfaceTypedCommandWriter
- Returns:
- position of new record, negative value on failure
-
getRecords
public List<ReprocessingRecord> getRecords()
-
removeRecord
public void removeRecord(long recordKey, long sourceRecordPosition)
-
-