com.caucho.util
Class WaitQueue

java.lang.Object
  extended by com.caucho.util.WaitQueue

public class WaitQueue
extends java.lang.Object

wait queue


Nested Class Summary
 class WaitQueue.Item
           
 
Constructor Summary
WaitQueue()
           
 
Method Summary
 WaitQueue.Item create()
           
 void park(WaitQueue.Item item, long timeout)
           
 void parkUntil(WaitQueue.Item item, long expires)
           
 java.lang.String toString()
           
 boolean wake()
           
 void wakeAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WaitQueue

public WaitQueue()
Method Detail

wake

public boolean wake()

wakeAll

public void wakeAll()

park

public void park(WaitQueue.Item item,
                 long timeout)

parkUntil

public void parkUntil(WaitQueue.Item item,
                      long expires)

create

public WaitQueue.Item create()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object