Enum Class WorkManager.Scheduling

java.lang.Object
java.lang.Enum<WorkManager.Scheduling>
org.nuxeo.ecm.core.work.api.WorkManager.Scheduling
All Implemented Interfaces:
Serializable, Comparable<WorkManager.Scheduling>, Constable
Enclosing interface:
WorkManager

public static enum WorkManager.Scheduling extends Enum<WorkManager.Scheduling>
The scheduling policy to use when adding a work instance using WorkManager.schedule(Work, Scheduling).
  • Enum Constant Details

    • ENQUEUE

      public static final WorkManager.Scheduling ENQUEUE
      Always schedule the work.
    • CANCEL_SCHEDULED

      public static final WorkManager.Scheduling CANCEL_SCHEDULED
      Any other scheduled work equals to this one is removed from scheduling and canceled first, before this work is scheduled.
    • IF_NOT_SCHEDULED

      public static final WorkManager.Scheduling IF_NOT_SCHEDULED
      If there is a scheduled work equals to this one, then don't schedule the work.
    • IF_NOT_RUNNING_OR_SCHEDULED

      public static final WorkManager.Scheduling IF_NOT_RUNNING_OR_SCHEDULED
      If there is a running or scheduled work equals to this one, then don't schedule the work.
  • Field Details

  • Method Details

    • values

      public static WorkManager.Scheduling[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WorkManager.Scheduling valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null