public class JobExecutionContextImpl extends Object implements org.apache.sling.event.jobs.consumer.JobExecutionContext
| Modifier and Type | Class and Description |
|---|---|
static interface |
JobExecutionContextImpl.ASyncHandler
Call back interface to the queue.
|
| Constructor and Description |
|---|
JobExecutionContextImpl(JobHandler handler,
JobExecutionContextImpl.ASyncHandler asyncHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncProcessingFinished(org.apache.sling.event.jobs.consumer.JobExecutionResult result) |
void |
incrementProgressCount(int steps) |
void |
initProgress(int steps,
long eta) |
boolean |
isStopped() |
void |
log(@NotNull String message,
Object... args) |
void |
markAsync() |
org.apache.sling.event.jobs.consumer.JobExecutionContext.ResultBuilder |
result() |
void |
setProperty(@NotNull String name,
Object value) |
void |
updateProgress(long eta) |
public JobExecutionContextImpl(JobHandler handler, JobExecutionContextImpl.ASyncHandler asyncHandler)
public void markAsync()
public void initProgress(int steps,
long eta)
initProgress in interface org.apache.sling.event.jobs.consumer.JobExecutionContextpublic void incrementProgressCount(int steps)
incrementProgressCount in interface org.apache.sling.event.jobs.consumer.JobExecutionContextpublic void updateProgress(long eta)
updateProgress in interface org.apache.sling.event.jobs.consumer.JobExecutionContextpublic void setProperty(@NotNull
@NotNull String name,
Object value)
setProperty in interface org.apache.sling.event.jobs.consumer.JobExecutionContextpublic void log(@NotNull
@NotNull String message,
Object... args)
log in interface org.apache.sling.event.jobs.consumer.JobExecutionContextpublic boolean isStopped()
isStopped in interface org.apache.sling.event.jobs.consumer.JobExecutionContextpublic void asyncProcessingFinished(org.apache.sling.event.jobs.consumer.JobExecutionResult result)
asyncProcessingFinished in interface org.apache.sling.event.jobs.consumer.JobExecutionContextpublic org.apache.sling.event.jobs.consumer.JobExecutionContext.ResultBuilder result()
result in interface org.apache.sling.event.jobs.consumer.JobExecutionContextCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.