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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TaskBindingType
value()
Returns enum value defined as in schema.static TaskBindingType
Returns the enum constant of this class with the specified name.static TaskBindingType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException
- if the argument is null
-
value
Description copied from interface:TypeSafeEnum
Returns enum value defined as in schema.- Specified by:
value
in interfaceTypeSafeEnum
- Returns:
-
fromValue
-