org.apache.openjpa.lib.util.concurrent
Class WaitQueue

java.lang.Object
  extended by 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.


Nested Class Summary
static interface WaitQueue.QueuedSync
           
static class WaitQueue.WaitNode
           
 
Constructor Summary
WaitQueue()
           
 
Method Summary
abstract  WaitQueue.WaitNode extract()
           
abstract  int getLength()
           
abstract  Collection getWaitingThreads()
           
abstract  boolean hasNodes()
           
abstract  void insert(WaitQueue.WaitNode w)
           
abstract  boolean isWaiting(Thread thread)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaitQueue

public WaitQueue()
Method Detail

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 Apache Software Foundation. All Rights Reserved.