com.espertech.esper.collection
Class ThreadWorkQueue

java.lang.Object
  extended by com.espertech.esper.collection.ThreadWorkQueue

public class ThreadWorkQueue
extends java.lang.Object

Simple queue implementation based on a Linked List per thread. Objects can be added to the queue tail or queue head.


Constructor Summary
ThreadWorkQueue()
           
 
Method Summary
 void addBack(java.lang.Object theEvent)
          Adds event to the back queue.
 void addFront(java.lang.Object theEvent)
          Adds event to the front queue.
 DualWorkQueue getThreadQueue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadWorkQueue

public ThreadWorkQueue()
Method Detail

addBack

public void addBack(java.lang.Object theEvent)
Adds event to the back queue.

Parameters:
theEvent - to add

addFront

public void addFront(java.lang.Object theEvent)
Adds event to the front queue.

Parameters:
theEvent - to add

getThreadQueue

public DualWorkQueue getThreadQueue()

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