Interface TypedCommandWriter
-
- All Known Subinterfaces:
TypedStreamWriter
- All Known Implementing Classes:
NoopTypedStreamWriter,ReprocessingStreamWriter,TypedCommandWriterImpl,TypedStreamWriterImpl,TypedStreamWriterProxy
public interface TypedCommandWriterThings that any actor can write to a partition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendFollowUpCommand(long key, Intent intent, UnpackedObject value)voidappendFollowUpCommand(long key, Intent intent, UnpackedObject value, Consumer<RecordMetadata> metadata)voidappendNewCommand(Intent intent, UnpackedObject value)longflush()voidreset()
-
-
-
Method Detail
-
appendNewCommand
void appendNewCommand(Intent intent, UnpackedObject value)
-
appendFollowUpCommand
void appendFollowUpCommand(long key, Intent intent, UnpackedObject value)
-
appendFollowUpCommand
void appendFollowUpCommand(long key, Intent intent, UnpackedObject value, Consumer<RecordMetadata> metadata)
-
reset
void reset()
-
flush
long flush()
- Returns:
- position of new record, negative value on failure
-
-