Class SerialExecutionQueue<T>
java.lang.Object
com.inductiveautomation.ignition.common.util.SerialExecutionQueue<T>
- Type Parameters:
- T- Submitted item type.
Queues up submitted items and executes them in serial on an ExecutorService.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic classAnSerialExecutionQueue.ExecutionCallbackthat executesRunnables.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSerialExecutionQueue(SerialExecutionQueue.ExecutionCallback<T> callback, ExecutorService service) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> SerialExecutionQueue.ExecutionCallback<T>voidpause()Pause evaluation of items in the queue.voidresume()Resume evaluation of items in the queue.intsize()voidSubmit 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 Details- 
RUNNABLE_EXECUTOR
 
- 
- 
Constructor Details- 
SerialExecutionQueuepublic SerialExecutionQueue(SerialExecutionQueue.ExecutionCallback<T> callback, ExecutorService service) 
 
- 
- 
Method Details- 
submitSubmit an item to be delivered to the callback when it's time to execute.- Parameters:
- item- Item to be delivered.
 
- 
submitToHeadSubmit 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()
- 
noOpCallback
 
-