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 TypeMethodDescriptionboolean
Returns the resulting record batch, which can be empty or consist of multipleRecordBatchEntry
s.boolean
isEmpty()
Indicates whether the processing result is empty.
-
Field Details
-
INSTANCE
-
-
Method Details
-
getRecordBatch
Description copied from interface:ProcessingResult
Returns the resulting record batch, which can be empty or consist of multipleRecordBatchEntry
s. These entries are the result of the current processing. If an entry is of typeRecordType.COMMAND
it will be later processed as follow-up command.- Specified by:
getRecordBatch
in interfaceProcessingResult
- Returns:
- returns the resulting immutable record batch
-
getProcessingResponse
- Specified by:
getProcessingResponse
in 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:
executePostCommitTasks
in interfaceProcessingResult
- 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 interfaceProcessingResult
- Returns:
- true if all the following applies:
- there is no response
- the record batch is empty
- there is no tasks to execute
-