Class YieldingJobStreamErrorHandler
java.lang.Object
io.camunda.zeebe.broker.jobstream.YieldingJobStreamErrorHandler
- All Implemented Interfaces:
JobStreamErrorHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(ActivatedJob job, Throwable error, TaskResultBuilder resultBuilder) Called when a previously activated job, which was supposed to be pushed, cannot be pushed due to some error.
-
Constructor Details
-
YieldingJobStreamErrorHandler
public YieldingJobStreamErrorHandler()
-
-
Method Details
-
handleError
Description copied from interface:JobStreamErrorHandlerCalled when a previously activated job, which was supposed to be pushed, cannot be pushed due to some error.Implementations should use the given
TaskResultBuilderto append followup commands to the same partition as the job's.- Specified by:
handleErrorin interfaceJobStreamErrorHandler- Parameters:
job- the activated job which should have been pushederror- the last error which caused the failureresultBuilder- the result builder on which you can add followup commands to be processed
-