Class JobExecutionContextImpl

  • All Implemented Interfaces:
    org.apache.sling.event.jobs.consumer.JobExecutionContext

    public class JobExecutionContextImpl
    extends Object
    implements org.apache.sling.event.jobs.consumer.JobExecutionContext
    Implementation of the job execution context passed to job executors.
    • Method Detail

      • markAsync

        public void markAsync()
      • initProgress

        public void initProgress​(int steps,
                                 long eta)
        Specified by:
        initProgress in interface org.apache.sling.event.jobs.consumer.JobExecutionContext
      • incrementProgressCount

        public void incrementProgressCount​(int steps)
        Specified by:
        incrementProgressCount in interface org.apache.sling.event.jobs.consumer.JobExecutionContext
      • updateProgress

        public void updateProgress​(long eta)
        Specified by:
        updateProgress in interface org.apache.sling.event.jobs.consumer.JobExecutionContext
      • setProperty

        public void setProperty​(@NotNull
                                @NotNull String name,
                                Object value)
        Specified by:
        setProperty in interface org.apache.sling.event.jobs.consumer.JobExecutionContext
      • log

        public void log​(@NotNull
                        @NotNull String message,
                        Object... args)
        Specified by:
        log in interface org.apache.sling.event.jobs.consumer.JobExecutionContext
      • isStopped

        public boolean isStopped()
        Specified by:
        isStopped in interface org.apache.sling.event.jobs.consumer.JobExecutionContext
      • asyncProcessingFinished

        public void asyncProcessingFinished​(org.apache.sling.event.jobs.consumer.JobExecutionResult result)
        Specified by:
        asyncProcessingFinished in interface org.apache.sling.event.jobs.consumer.JobExecutionContext
      • result

        public org.apache.sling.event.jobs.consumer.JobExecutionContext.ResultBuilder result()
        Specified by:
        result in interface org.apache.sling.event.jobs.consumer.JobExecutionContext