Class TypedStreamWriterImpl
- java.lang.Object
-
- io.camunda.zeebe.engine.processing.streamprocessor.writers.TypedStreamWriterImpl
-
- All Implemented Interfaces:
TypedCommandWriter
,TypedEventWriter
,TypedRejectionWriter
,TypedStreamWriter
public class TypedStreamWriterImpl extends Object implements TypedStreamWriter
-
-
Constructor Summary
Constructors Constructor Description TypedStreamWriterImpl(LogStreamBatchWriter batchWriter)
-
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)
protected void
appendRecord(long key, RecordType type, Intent intent, RecordValue value)
protected void
appendRecord(long key, RecordType type, Intent intent, RejectionType rejectionType, String rejectionReason, RecordValue value)
void
appendRejection(TypedRecord<? extends RecordValue> command, RejectionType rejectionType, String reason)
void
configureSourceContext(long sourceRecordPosition)
long
flush()
protected void
initMetadata(RecordType type, Intent intent, RecordValue value)
void
reset()
-
-
-
Constructor Detail
-
TypedStreamWriterImpl
public TypedStreamWriterImpl(LogStreamBatchWriter batchWriter)
-
-
Method Detail
-
initMetadata
protected void initMetadata(RecordType type, Intent intent, RecordValue value)
-
appendRecord
protected void appendRecord(long key, RecordType type, Intent intent, RecordValue value)
-
appendRecord
protected void appendRecord(long key, RecordType type, Intent intent, RejectionType rejectionType, String rejectionReason, RecordValue value)
-
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
-
appendRejection
public void appendRejection(TypedRecord<? extends RecordValue> command, RejectionType rejectionType, 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
-
-