Interface ProcessingResult

All Known Implementing Classes:
EmptyProcessingResult

public interface ProcessingResult
Here the interface is just a suggestion. Can be whatever PDT teams thinks is best to work with
  • Method Details

    • getRecordBatch

      ImmutableRecordBatch getRecordBatch()
      Returns the resulting record batch, which can be empty or consist of multiple RecordBatchEntrys. These entries are the result of the current processing. If an entry is of type RecordType.COMMAND it will be later processed as follow-up command.
      Returns:
      returns the resulting immutable record batch
    • getProcessingResponse

      Optional<ProcessingResponse> getProcessingResponse()
      Returns:
      the processing response, which should be sent as answer of a user command. Can be empty if no user command was processed.
    • executePostCommitTasks

      boolean executePostCommitTasks()
      Returns:
      false to indicate that the side effect could not be applied successfully
    • isEmpty

      boolean isEmpty()
      Indicates whether the processing result is empty.
      Returns:
      true if all the following applies:
      • there is no response
      • the record batch is empty
      • there is no tasks to execute
      false otherwise.