Package io.camunda.zeebe.engine.api
Class EmptyProcessingResult
java.lang.Object
io.camunda.zeebe.engine.api.EmptyProcessingResult
- All Implemented Interfaces:
ProcessingResult
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the resulting record batch, which can be empty or consist of multipleRecordBatchEntrys.booleanisEmpty()Indicates whether the processing result is empty.
-
Field Details
-
INSTANCE
-
-
Method Details
-
getRecordBatch
Description copied from interface:ProcessingResultReturns the resulting record batch, which can be empty or consist of multipleRecordBatchEntrys. These entries are the result of the current processing. If an entry is of typeRecordType.COMMANDit will be later processed as follow-up command.- Specified by:
getRecordBatchin interfaceProcessingResult- Returns:
- returns the resulting immutable record batch
-
getProcessingResponse
- Specified by:
getProcessingResponsein interfaceProcessingResult- 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:
executePostCommitTasksin interfaceProcessingResult- Returns:
falseto indicate that the side effect could not be applied successfully
-
isEmpty
public boolean isEmpty()Description copied from interface:ProcessingResultIndicates whether the processing result is empty.- Specified by:
isEmptyin interfaceProcessingResult- Returns:
- true if all the following applies:
- there is no response
- the record batch is empty
- there is no tasks to execute
-