com.espertech.esper.collection
Class DualWorkQueue<Object>

java.lang.Object
  extended by com.espertech.esper.collection.DualWorkQueue<Object>

public class DualWorkQueue<Object>
extends java.lang.Object

Work queue wherein items can be added to the front and to the back, wherein both front and back have a given order, with the idea that all items of the front queue get processed before any given single item of the back queue gets processed.


Constructor Summary
DualWorkQueue()
          Ctor.
 
Method Summary
 java.util.ArrayDeque<Object> getBackQueue()
          Items to be processed after front-queue is empty, in the order to be processed.
 java.util.ArrayDeque<Object> getFrontQueue()
          Items to be processed first, in the order to be processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DualWorkQueue

public DualWorkQueue()
Ctor.

Method Detail

getFrontQueue

public java.util.ArrayDeque<Object> getFrontQueue()
Items to be processed first, in the order to be processed.

Returns:
front queue

getBackQueue

public java.util.ArrayDeque<Object> getBackQueue()
Items to be processed after front-queue is empty, in the order to be processed.

Returns:
back queue

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com