Enum Class TaskBindingType

java.lang.Object
java.lang.Enum<TaskBindingType>
com.evolveum.midpoint.xml.ns._public.common.common_3.TaskBindingType
All Implemented Interfaces:
TypeSafeEnum, Serializable, Comparable<TaskBindingType>, Constable

public enum TaskBindingType extends Enum<TaskBindingType> implements TypeSafeEnum
Whether a recurring task is bound tightly to one node (having allocated a thread on this node for the whole time of task run) or it should by dynamically placed on any suitable node when its execution time comes.
  • Enum Constant Details

    • LOOSE

      public static final TaskBindingType LOOSE
      The task is exclusively assigned to a specific node only during its run. The thread is allocated only for the minimal amount of time. It does not matter which node will execute the task as long as there is an appropriate handler. This is efficient for tasks that take long time to execute and the execution mostly waits (e.g. approvals) or for tasks which have long interval between executions (e.g. reconciliation).
    • TIGHT

      public static final TaskBindingType TIGHT
      Task is exclusively assigned to a specific node from its start to its finish. A thread will be running and allocated for the task all the time. The thread may go to sleep as needed, but during that time the task remains assigned to the node. This is efficient for recurring tasks executed in short intervals, such as live synchronization.
  • Method Details

    • values

      public static TaskBindingType[] 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 TaskBindingType 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
    • value

      public String value()
      Description copied from interface: TypeSafeEnum
      Returns enum value defined as in schema.
      Specified by:
      value in interface TypeSafeEnum
      Returns:
    • fromValue

      public static TaskBindingType fromValue(String v)