Package com.inductiveautomation.sfc.api
Class ExecutionQueue
java.lang.Object
com.inductiveautomation.sfc.api.ExecutionQueue
Queues up submitted 
Runnables and executes them in serial on an
 ExecutorService.- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionExecutionQueue(ExecutorService service, MDCUtils.MDCDetails logDetails) ExecutionQueue(ExecutorService service, MDCUtils.MDCDetails logDetails, String identId) 
- 
Method Summary
- 
Constructor Details- 
ExecutionQueue
- 
ExecutionQueue
 
- 
- 
Method Details- 
beginTransactionpublic void beginTransaction()If multiple commands must be put on the queue in an atomic manner, use this to begin a transaction. All submissions will be queued in order with nothing else allowed until closeTransaction is called. Be sure to call closeTransaction in a finally block.
- 
closeTransactionpublic void closeTransaction()
- 
submitSubmit aRunnableto be executed.- Parameters:
- runnable- the- Runnableto be executed.
 
- 
submit
- 
pausepublic void pause()Pause execution of queuedRunnables.
- 
resumepublic void resume()Resume execution of queuedRunnables.
 
-