Interface TypedCommandWriter


public interface TypedCommandWriter
This interface is supposed to replace TypedCommandWriter
  • Method Details

    • appendNewCommand

      void appendNewCommand(Intent intent, RecordValue value)
      Append a new command to the result builder
      Parameters:
      intent - the intent of the command
      value - the record of the command
      Throws:
      ExceededBatchRecordSizeException - if the appended command doesn't fit into the RecordBatch
    • appendFollowUpCommand

      void appendFollowUpCommand(long key, Intent intent, RecordValue value)
      Append a follow up command to the result builder
      Parameters:
      intent - the intent of the command
      value - 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