Class TypedStreamWriterProxy
java.lang.Object
io.camunda.zeebe.engine.processing.bpmn.behavior.TypedStreamWriterProxy
- 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) voidappendRejection(TypedRecord<? extends RecordValue> command, RejectionType type, String reason) voidconfigureSourceContext(long sourceRecordPosition) longflush()voidreset()voidwrap(TypedStreamWriter writer)
-
Constructor Details
-
TypedStreamWriterProxy
public TypedStreamWriterProxy()
-
-
Method Details
-
wrap
-
appendRejection
public void appendRejection(TypedRecord<? extends RecordValue> command, RejectionType type, String reason) - Specified by:
appendRejectionin interfaceTypedRejectionWriter
-
configureSourceContext
public void configureSourceContext(long sourceRecordPosition) - Specified by:
configureSourceContextin interfaceTypedStreamWriter
-
appendFollowUpEvent
- Specified by:
appendFollowUpEventin interfaceTypedEventWriter
-
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
-