Class TypedStreamWriterImpl
java.lang.Object
io.camunda.zeebe.engine.processing.streamprocessor.writers.TypedStreamWriterImpl
- All Implemented Interfaces:
TypedCommandWriter,TypedEventWriter,TypedRejectionWriter,TypedStreamWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendFollowUpCommand(long key, Intent intent, RecordValue value) voidappendFollowUpEvent(long key, Intent intent, RecordValue value) voidappendNewCommand(Intent intent, RecordValue value) protected voidappendRecord(long key, RecordType type, Intent intent, RecordValue value) protected voidappendRecord(long key, RecordType type, Intent intent, RejectionType rejectionType, String rejectionReason, RecordValue value) voidappendRejection(TypedRecord<? extends RecordValue> command, RejectionType rejectionType, String reason) voidconfigureSourceContext(long sourceRecordPosition) longflush()protected voidinitMetadata(RecordType type, Intent intent, RecordValue value) voidreset()
-
Constructor Details
-
TypedStreamWriterImpl
-
-
Method Details
-
initMetadata
-
appendRecord
-
appendRecord
protected void appendRecord(long key, RecordType type, Intent intent, RejectionType rejectionType, String rejectionReason, RecordValue value) -
appendNewCommand
- Specified by:
appendNewCommandin interfaceTypedCommandWriter
-
appendFollowUpCommand
- 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
-
appendRejection
public void appendRejection(TypedRecord<? extends RecordValue> command, RejectionType rejectionType, String reason) - Specified by:
appendRejectionin interfaceTypedRejectionWriter
-
configureSourceContext
public void configureSourceContext(long sourceRecordPosition) - Specified by:
configureSourceContextin interfaceTypedStreamWriter
-
appendFollowUpEvent
- Specified by:
appendFollowUpEventin interfaceTypedEventWriter
-