org.apache.openjpa.lib.util.concurrent
Class WaitQueue
java.lang.Object
org.apache.openjpa.lib.util.concurrent.WaitQueue
public abstract class WaitQueue
- extends Object
Base class for internal queue classes for semaphores, etc.
Relies on subclasses to actually implement queue mechanics.
NOTE: this class is NOT present in java.util.concurrent.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WaitQueue
public WaitQueue()
insert
public abstract void insert(WaitQueue.WaitNode w)
extract
public abstract WaitQueue.WaitNode extract()
hasNodes
public abstract boolean hasNodes()
getLength
public abstract int getLength()
getWaitingThreads
public abstract Collection getWaitingThreads()
isWaiting
public abstract boolean isWaiting(Thread thread)
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.