Interface JobExecutionContext.ResultBuilder
-
- Enclosing interface:
- JobExecutionContext
public static interface JobExecutionContext.ResultBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JobExecutionResultcancelled()The job processing failed permanently.JobExecutionResultfailed()The job processing failed and might be retried.JobExecutionResultfailed(long retryDelayInMs)The job processing failed and might be retried.JobExecutionContext.ResultBuildermessage(java.lang.String message)Add an optional processing message.JobExecutionResultsucceeded()The job processing finished successfully.
-
-
-
Method Detail
-
message
JobExecutionContext.ResultBuilder message(java.lang.String 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
JobExecutionResult failed(long retryDelayInMs)
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
-
-