Class TaskQueue
- java.lang.Object
-
- de.xima.fc.workflow.processor.logic.execution.TaskQueue
-
- All Implemented Interfaces:
Iterable<IWorkflowQueueItem>
public final class TaskQueue extends Object implements Iterable<IWorkflowQueueItem>
A task queue implemented as a list, but only with the methods actually required.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
static TaskQueue
forItems(Iterable<IWorkflowQueueItem> items)
boolean
isEmpty()
Iterator<IWorkflowQueueItem>
iterator()
IWorkflowQueueItem
popNextItemScheduledForExecution()
void
queueAfterAllOtherItems(IWorkflowQueueItem item)
void
queueForImmediateExecution(IWorkflowQueueItem item)
int
size()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
clear
public void clear()
-
isEmpty
public boolean isEmpty()
-
iterator
public Iterator<IWorkflowQueueItem> iterator()
- Specified by:
iterator
in interfaceIterable<IWorkflowQueueItem>
-
popNextItemScheduledForExecution
public IWorkflowQueueItem popNextItemScheduledForExecution()
-
queueAfterAllOtherItems
public void queueAfterAllOtherItems(IWorkflowQueueItem item)
-
queueForImmediateExecution
public void queueForImmediateExecution(IWorkflowQueueItem item)
-
size
public int size()
-
forItems
public static TaskQueue forItems(Iterable<IWorkflowQueueItem> items)
-
-