iCMS.applet
Class InfoRequestQueue

java.lang.Object
  extended by luky.util.BlockingQueue
      extended by iCMS.applet.InfoRequestQueue

public class InfoRequestQueue
extends BlockingQueue

InfoRequestQueue is used to coordinate work between a producer and consumer threads. The producer adds elements to the queue containing information The consumer threads remove objects from the queue, if the queue is empty the thread will block until a new object is added to the queue. if a new info request is added, from a different token, the queue is auto -matically cleared

Revision Changes :

Version:
2.0.0
Author:
Chris Lukassen
 

Field Summary
 
Fields inherited from class luky.util.BlockingQueue
queue
 
Constructor Summary
InfoRequestQueue()
          default constructor
 
Method Summary
 void add(InfoRequest req)
          add an element to the queue
 
Methods inherited from class luky.util.BlockingQueue
add, addLast, clearAndAdd, get, getFirst, peekFirst, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoRequestQueue

public InfoRequestQueue()
default constructor

Method Detail

add

public void add(InfoRequest req)
add an element to the queue