Enum TaskBindingType

  • All Implemented Interfaces:
    Serializable, Comparable<TaskBindingType>

    public enum TaskBindingType
    extends Enum<TaskBindingType>

    Java class for TaskBindingType.

    The following schema fragment specifies the expected content contained within this class.

     <simpleType name="TaskBindingType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="loose"/>
         <enumeration value="tight"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • LOOSE

        public static final TaskBindingType LOOSE
        The task is exclusively assigned to a specific node only during its execution. 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 Detail

      • values

        public static TaskBindingType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TaskBindingType c : TaskBindingType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TaskBindingType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()