Class YieldingJobStreamErrorHandler

java.lang.Object
io.camunda.zeebe.broker.jobstream.YieldingJobStreamErrorHandler
All Implemented Interfaces:
JobStreamErrorHandler

public class YieldingJobStreamErrorHandler extends Object implements JobStreamErrorHandler
  • Constructor Details

    • YieldingJobStreamErrorHandler

      public YieldingJobStreamErrorHandler()
  • Method Details

    • handleError

      public void handleError(ActivatedJob job, Throwable error, TaskResultBuilder resultBuilder)
      Description copied from interface: JobStreamErrorHandler
      Called when a previously activated job, which was supposed to be pushed, cannot be pushed due to some error.

      Implementations should use the given TaskResultBuilder to append followup commands to the same partition as the job's.

      Specified by:
      handleError in interface JobStreamErrorHandler
      Parameters:
      job - the activated job which should have been pushed
      error - the last error which caused the failure
      resultBuilder - the result builder on which you can add followup commands to be processed