Class PriorityJobAttribute

    • Constructor Detail

      • PriorityJobAttribute

        public PriorityJobAttribute​(Priority priority,
                                    Priority priorityFloor)
        Constructs an instance of PriorityJobAttribute.
        Parameters:
        priority - The priority of this job.
        priorityFloor - The priority floor of this job.
      • PriorityJobAttribute

        public PriorityJobAttribute​(Priority priority)
        Constructs an instance of PriorityJobAttribute.
        Parameters:
        priority - The priority of this job.
      • PriorityJobAttribute

        public PriorityJobAttribute()
        Constructs an instance of PriorityJobAttribute.
    • Method Detail

      • getPriority

        public final Priority getPriority()
        Get the priority in this attribute.
        Returns:
        the priority in this attribute.
      • prepareRetry

        public final void prepareRetry()
        Description copied from interface: JobAttribute
        This method is called before the job is scheduled for a retry.

        This method allows you to specify the logic to move the job into its subsequent state for a retry.

        Specified by:
        prepareRetry in interface JobAttribute