| 
 
 | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--org.erights.e.elib.vat.Queue
        |
        +--org.erights.e.elib.vat.SynchQueue
Untamed: A SynchQueue is a thread-safe Queue, providing its own lock, and a blocking dequeue() operation.
 Since it provides a blocking operation, it is not E-safe.  For an E-safe
 variant suitable for use inside one vat, see the superclass Queue.
org.erights.e.elib.vat.Vat| Field Summary | |
private  Object | 
myQLock
 | 
| Fields inherited from class org.erights.e.elib.vat.Queue | 
 | 
| Constructor Summary | |
SynchQueue()
Enabled: Makes a SynchQueue that can hold any object (except null).  | 
|
SynchQueue(Class elementType)
Enabled: Makes a SynchQueue that can hold objects of the specified elementType.  | 
|
SynchQueue(Class elementType,
           Object qLock)
Enabled: Provide the object to lock on.  | 
|
| Method Summary | |
 Object | 
dequeue()
Enabled: Get the least-recently-added element off of the queue.  | 
 void | 
enqueue(Object newElement)
Enabled:  | 
 boolean | 
hasMoreElements()
Enabled: Check to see if the queue has more elements.  | 
 Object | 
optDequeue()
Enabled:  | 
| Methods inherited from class org.erights.e.elib.vat.Queue | 
nextElement | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface java.util.Enumeration | 
asList, iterate | 
| Field Detail | 
private final Object myQLock
| Constructor Detail | 
public SynchQueue()
public SynchQueue(Class elementType)
elementType - may not be a primitive (ie, scalar) type.
public SynchQueue(Class elementType,
                  Object qLock)
| Method Detail | 
public Object dequeue()
public void enqueue(Object newElement)
enqueue in class QueuenewElement - the object to be added to the end of the queue.public boolean hasMoreElements()
hasMoreElements in interface EnumerationhasMoreElements in class Queuepublic Object optDequeue()
optDequeue in class Queue
  | 
 
 | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||