@ProviderType
public interface JobExecutionResult
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.Modifier and Type | Method and Description |
---|---|
boolean |
cancelled()
If this returns true the job processing failed permanently.
|
boolean |
failed()
If this returns true the job processing failed but might be
retried..
|
String |
getMessage()
Return the optional message.
|
Long |
getRetryDelayInMs()
Return the retry delay in ms
|
boolean |
succeeded()
If this returns true the job processing finished successfully.
|
boolean succeeded()
cancelled()
and failed()
return
false
true
for a successful processingboolean cancelled()
succeeded()
and failed()
return
false
true
for a permanently failed processingboolean failed()
cancelled()
and succeeded()
return
false
true
for a failedl processingString getMessage()
null
Long getRetryDelayInMs()
null
Copyright © 2014 The Apache Software Foundation. All rights reserved.