Class EmptyProcessingResult

java.lang.Object
io.camunda.zeebe.engine.api.EmptyProcessingResult
All Implemented Interfaces:
ProcessingResult

public final class EmptyProcessingResult extends Object implements ProcessingResult
  • Field Details

  • Method Details

    • getRecordBatch

      public ImmutableRecordBatch getRecordBatch()
      Description copied from interface: ProcessingResult
      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.
      Specified by:
      getRecordBatch in interface ProcessingResult
      Returns:
      returns the resulting immutable record batch
    • getProcessingResponse

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

      public boolean executePostCommitTasks()
      Specified by:
      executePostCommitTasks in interface ProcessingResult
      Returns:
      false to indicate that the side effect could not be applied successfully
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: ProcessingResult
      Indicates whether the processing result is empty.
      Specified by:
      isEmpty in interface ProcessingResult
      Returns:
      true if all the following applies:
      • there is no response
      • the record batch is empty
      • there is no tasks to execute
      false otherwise.