Interface TypedCommandWriter
public interface TypedCommandWriter
This interface is supposed to replace TypedCommandWriter
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendFollowUpCommand(long key, Intent intent, RecordValue value) Append a follow up command to the result buildervoidappendNewCommand(Intent intent, RecordValue value) Append a new command to the result builderbooleancanWriteCommandOfLength(int commandLength)
-
Method Details
-
appendNewCommand
Append a new command to the result builder- Parameters:
intent- the intent of the commandvalue- the record of the command- Throws:
ExceededBatchRecordSizeException- if the appended command doesn't fit into the RecordBatch
-
appendFollowUpCommand
Append a follow up command to the result builder- Parameters:
intent- the intent of the commandvalue- the record of the command- Throws:
ExceededBatchRecordSizeException- if the appended command doesn't fit into the RecordBatch
-
canWriteCommandOfLength
boolean canWriteCommandOfLength(int commandLength) - Parameters:
commandLength- the length of the command that will be written- Returns:
- true if a command of the given length can be written
-