Package com.kraken.api.core.script
Class PriorityTask
- java.lang.Object
-
- com.kraken.api.core.script.AbstractTask
-
- com.kraken.api.core.script.PriorityTask
-
- All Implemented Interfaces:
Task
public abstract class PriorityTask extends AbstractTask
Represents a task that includes a priority level, allowing tasks to be prioritized during selection or execution in workflows or script logic.This class extends
AbstractTask, inheriting capabilities such as access to a Context instance for task configuration and runtime behavior. It introduces an additional abstract method for retrieving the priority of the task.Key Characteristics:
- Must be subclassed to implement priority-based behavior.
- Integrates with the task execution framework through inheritance from
AbstractTaskand theTaskinterface.
Priority Management:
Subclasses are required to define thegetPriority()method, which returns an integer value representing the priority level of the task. Higher priority values generally indicate tasks that should be executed earlier or given precedence over those with lower values. The specific interpretation of priority values is determined by the execution context in which this task is used.
-
-
Field Summary
-
Fields inherited from class com.kraken.api.core.script.AbstractTask
ctx
-
-
Constructor Summary
Constructors Constructor Description PriorityTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract intgetPriority()
-