Enum TaskBindingType
- java.lang.Object
-
- java.lang.Enum<TaskBindingType>
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.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>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskBindingType
fromValue(String v)
String
value()
static TaskBindingType
valueOf(String name)
Returns the enum constant of this type with the specified name.static TaskBindingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 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 nameNullPointerException
- if the argument is null
-
value
public String value()
-
fromValue
public static TaskBindingType fromValue(String v)
-
-