Package io.camunda.client.impl.worker
Class JobExceptionHandlerImpl
java.lang.Object
io.camunda.client.impl.worker.JobExceptionHandlerImpl
- All Implemented Interfaces:
JobExceptionHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.worker.JobExceptionHandler
JobExceptionHandler.JobExceptionHandlerContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Function<JobExceptionHandler.JobExceptionHandlerContext, String> static final BiConsumer<FailJobCommandStep1.FailJobCommandStep2, JobExceptionHandler.JobExceptionHandlerContext> static final Function<JobExceptionHandler.JobExceptionHandlerContext, Integer> static final Function<JobExceptionHandler.JobExceptionHandlerContext, Duration> static final Function<JobExceptionHandler.JobExceptionHandlerContext, Object> -
Constructor Summary
ConstructorsConstructorDescriptionJobExceptionHandlerImpl(Duration retryBackoff) JobExceptionHandlerImpl(Function<JobExceptionHandler.JobExceptionHandlerContext, String> errorMessageProvider, Function<JobExceptionHandler.JobExceptionHandlerContext, Integer> retriesProvider, Function<JobExceptionHandler.JobExceptionHandlerContext, Duration> retryBackoffProvider, Function<JobExceptionHandler.JobExceptionHandlerContext, Object> variablesProvider, BiConsumer<FailJobCommandStep1.FailJobCommandStep2, JobExceptionHandler.JobExceptionHandlerContext> failCommandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
-
Field Details
-
DEFAULT_ERROR_MESSAGE_PROVIDER
public static final Function<JobExceptionHandler.JobExceptionHandlerContext,String> DEFAULT_ERROR_MESSAGE_PROVIDER -
DEFAULT_RETRIES_PROVIDER
public static final Function<JobExceptionHandler.JobExceptionHandlerContext,Integer> DEFAULT_RETRIES_PROVIDER -
DEFAULT_RETRY_BACKOFF_PROVIDER
public static final Function<JobExceptionHandler.JobExceptionHandlerContext,Duration> DEFAULT_RETRY_BACKOFF_PROVIDER -
DEFAULT_VARIABLES_PROVIDER
public static final Function<JobExceptionHandler.JobExceptionHandlerContext,Object> DEFAULT_VARIABLES_PROVIDER -
DEFAULT_FAIL_COMMAND_EXECUTOR
public static final BiConsumer<FailJobCommandStep1.FailJobCommandStep2,JobExceptionHandler.JobExceptionHandlerContext> DEFAULT_FAIL_COMMAND_EXECUTOR
-
-
Constructor Details
-
JobExceptionHandlerImpl
public JobExceptionHandlerImpl(Function<JobExceptionHandler.JobExceptionHandlerContext, String> errorMessageProvider, Function<JobExceptionHandler.JobExceptionHandlerContext, Integer> retriesProvider, Function<JobExceptionHandler.JobExceptionHandlerContext, Duration> retryBackoffProvider, Function<JobExceptionHandler.JobExceptionHandlerContext, Object> variablesProvider, BiConsumer<FailJobCommandStep1.FailJobCommandStep2, JobExceptionHandler.JobExceptionHandlerContext> failCommandExecutor) -
JobExceptionHandlerImpl
public JobExceptionHandlerImpl() -
JobExceptionHandlerImpl
-
-
Method Details
-
handleJobException
- Specified by:
handleJobExceptionin interfaceJobExceptionHandler
-