Interface JobExecutionContext.ResultBuilder
- Enclosing interface:
JobExecutionContext
public static interface JobExecutionContext.ResultBuilder
-
Method Summary
-
Method Details
-
message
Add an optional processing message. This message can be viewed usingJob.getResultMessage().- Parameters:
message- The message- Returns:
- The builder to continue building the result.
-
succeeded
JobExecutionResult succeeded()The job processing finished successfully.- Returns:
- The job execution result.
-
failed
JobExecutionResult failed()The job processing failed and might be retried.- Returns:
- The job execution result.
-
failed
The job processing failed and might be retried.- Parameters:
retryDelayInMs- The new retry delay in ms.- Returns:
- The job execution result
-
cancelled
JobExecutionResult cancelled()The job processing failed permanently.- Returns:
- The job execution result
-