Class JobExecutionResultImpl

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

    public class JobExecutionResultImpl
    extends Object
    implements org.apache.sling.event.jobs.consumer.JobExecutionResult
    The job execution result.
    • Constructor Detail

      • JobExecutionResultImpl

        public JobExecutionResultImpl​(InternalJobState state,
                                      String message,
                                      Long retryDelayInMs)
        Create a new result
        Parameters:
        state - The result state
        message - Optional Message
        retryDelayInMs - Optional retry delay
    • Method Detail

      • getState

        public InternalJobState getState()
        Get the internal state
        Returns:
        The state.
      • succeeded

        public boolean succeeded()
        Specified by:
        succeeded in interface org.apache.sling.event.jobs.consumer.JobExecutionResult
      • cancelled

        public boolean cancelled()
        Specified by:
        cancelled in interface org.apache.sling.event.jobs.consumer.JobExecutionResult
      • failed

        public boolean failed()
        Specified by:
        failed in interface org.apache.sling.event.jobs.consumer.JobExecutionResult
      • getMessage

        public String getMessage()
        Specified by:
        getMessage in interface org.apache.sling.event.jobs.consumer.JobExecutionResult
      • getRetryDelayInMs

        public Long getRetryDelayInMs()
        Specified by:
        getRetryDelayInMs in interface org.apache.sling.event.jobs.consumer.JobExecutionResult