Class SerialExecutionQueue<T>
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.util.SerialExecutionQueue<T>
 
- 
- Type Parameters:
- T- Submitted item type.
 
 public class SerialExecutionQueue<T> extends java.lang.ObjectQueues up submitted items and executes them in serial on an ExecutorService.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceSerialExecutionQueue.ExecutionCallback<T>static classSerialExecutionQueue.RunnableExecutorAnSerialExecutionQueue.ExecutionCallbackthat executesRunnables.
 - 
Field SummaryFields Modifier and Type Field Description static SerialExecutionQueue.RunnableExecutorRUNNABLE_EXECUTOR
 - 
Constructor SummaryConstructors Constructor Description SerialExecutionQueue(SerialExecutionQueue.ExecutionCallback<T> callback, java.util.concurrent.ExecutorService service)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> SerialExecutionQueue.ExecutionCallback<T>noOpCallback()voidpause()Pause evaluation of items in the queue.voidresume()Resume evaluation of items in the queue.intsize()voidsubmit(T item)Submit an item to be delivered to the callback when it's time to execute.voidsubmitToHead(T item)Submit an item at the head of the queue to be delivered to the callback when it's time to execute.
 
- 
- 
- 
Field Detail- 
RUNNABLE_EXECUTORpublic static final SerialExecutionQueue.RunnableExecutor RUNNABLE_EXECUTOR 
 
- 
 - 
Constructor Detail- 
SerialExecutionQueuepublic SerialExecutionQueue(SerialExecutionQueue.ExecutionCallback<T> callback, java.util.concurrent.ExecutorService service) 
 
- 
 - 
Method Detail- 
submitpublic void submit(T item) Submit an item to be delivered to the callback when it's time to execute.- Parameters:
- item- Item to be delivered.
 
 - 
submitToHeadpublic void submitToHead(T item) Submit an item at the head of the queue to be delivered to the callback when it's time to execute.- Parameters:
- item- Item to be delivered.
 
 - 
pausepublic void pause() Pause evaluation of items in the queue.
 - 
resumepublic void resume() Resume evaluation of items in the queue.
 - 
sizepublic int size() 
 - 
noOpCallbackpublic static <T> SerialExecutionQueue.ExecutionCallback<T> noOpCallback() 
 
- 
 
-