Interface JobExecutionResult
-
@ProviderType public interface JobExecutionResultThe status of a job after it has been processed by aJobExecutor. The job executor uses theJobExecutionContextto 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancelled()If this returns true the job processing failed permanently.booleanfailed()If this returns true the job processing failed but might be retried..java.lang.StringgetMessage()Return the optional message.java.lang.LonggetRetryDelayInMs()Return the retry delay in msbooleansucceeded()If this returns true the job processing finished successfully.
-
-
-
Method Detail
-
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
java.lang.String getMessage()
Return the optional message.- Returns:
- The message or
null
-
getRetryDelayInMs
java.lang.Long getRetryDelayInMs()
Return the retry delay in ms- Returns:
- The new retry delay (>= 0) or
null
-
-