Class RoundRobinWorkflowStrategy
java.lang.Object
org.tasktide.engine.policies.workflow.AbstractWorkflowStrategy
org.tasktide.engine.policies.workflow.RoundRobinWorkflowStrategy
- All Implemented Interfaces:
WorkflowAcquisitionStrategy
Round robin strategy to consume steps of workflow FIFO queue
-
Field Summary
Fields inherited from class AbstractWorkflowStrategy
activePolicy, counter, hasRun, id, limit, mode, policies, workflow -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure default scanningWorkflowStrategyModeforWorkflowAcquisitionStrategyevaluateWorkload(List<WorkItem> workload) Evaluate retrieved workload to configuredWorkflowStrategyModeFetchesWorkItemcollection according to configuredTaskTideWorkloadAcquisitionPolicy.booleanhasNext()Checks whether there active tasks in workflow, bypassing count of recordsMethods inherited from class AbstractWorkflowStrategy
evaluateIterationCounter, getActive, getHasRun, getId, getIterationLimit, getQueueTargets, getStrategyMode, getTargetNames, resetPolicyQueue, setHasRun, setIterationLimit, setStrategyMode
-
Method Details
-
fetchWorkload
FetchesWorkItemcollection according to configuredTaskTideWorkloadAcquisitionPolicy. Stateless round robin processing of steps in the workflow, where flow is determined by the configuredWorkflowStrategyMode- Returns:
- List-
WorkItem
-
configureDefaultStrategyMode
public void configureDefaultStrategyMode()Configure default scanningWorkflowStrategyModeforWorkflowAcquisitionStrategy -
evaluateWorkload
-
hasNext
public boolean hasNext()Checks whether there active tasks in workflow, bypassing count of records- Specified by:
hasNextin interfaceWorkflowAcquisitionStrategy- Overrides:
hasNextin classAbstractWorkflowStrategy- Returns:
- boolean
-