public class JobExecutionResultImpl extends Object implements org.apache.sling.event.jobs.consumer.JobExecutionResult
| Modifier and Type | Field and Description |
|---|---|
static JobExecutionResultImpl |
CANCELLED
Constant object for the cancelled case.
|
static JobExecutionResultImpl |
FAILED
Constant object for the failed case.
|
static JobExecutionResultImpl |
SUCCEEDED
Constant object for the success case.
|
| Constructor and Description |
|---|
JobExecutionResultImpl(InternalJobState state,
String message,
Long retryDelayInMs)
Create a new result
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelled() |
boolean |
failed() |
String |
getMessage() |
Long |
getRetryDelayInMs() |
InternalJobState |
getState()
Get the internal state
|
boolean |
succeeded() |
String |
toString() |
public static final JobExecutionResultImpl SUCCEEDED
public static final JobExecutionResultImpl CANCELLED
public static final JobExecutionResultImpl FAILED
public JobExecutionResultImpl(InternalJobState state, String message, Long retryDelayInMs)
state - The result statemessage - Optional MessageretryDelayInMs - Optional retry delaypublic InternalJobState getState()
public boolean succeeded()
succeeded in interface org.apache.sling.event.jobs.consumer.JobExecutionResultpublic boolean cancelled()
cancelled in interface org.apache.sling.event.jobs.consumer.JobExecutionResultpublic boolean failed()
failed in interface org.apache.sling.event.jobs.consumer.JobExecutionResultpublic String getMessage()
getMessage in interface org.apache.sling.event.jobs.consumer.JobExecutionResultpublic Long getRetryDelayInMs()
getRetryDelayInMs in interface org.apache.sling.event.jobs.consumer.JobExecutionResultCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.