Interface JobExecutionResult
The status of a job after it has been processed by a
JobExecutor.
The job executor uses the JobExecutionContext to create a result object.
The result can have three states, succeeded, cancelled or failed whereas
failed means that the execution is potentially retried.- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIf this returns true the job processing failed permanently.booleanfailed()If this returns true the job processing failed but might be retried..Return the optional message.Return the retry delay in msbooleanIf this returns true the job processing finished successfully.
-
Method Details
-
succeeded
boolean succeeded()If this returns true the job processing finished successfully. In this casecancelled()andfailed()returnfalse- Returns:
truefor a successful processing
-
cancelled
boolean cancelled()If this returns true the job processing failed permanently. In this casesucceeded()andfailed()returnfalse- Returns:
truefor a permanently failed processing
-
failed
boolean failed()If this returns true the job processing failed but might be retried.. In this casecancelled()andsucceeded()returnfalse- Returns:
truefor a failedl processing
-
getMessage
String getMessage()Return the optional message.- Returns:
- The message or
null
-
getRetryDelayInMs
Long getRetryDelayInMs()Return the retry delay in ms- Returns:
- The new retry delay (>= 0) or
null
-