org.objectweb.dream.synchro
Class AbstractSemaphoreQueuedImpl.WaitQueue.WaitNode

java.lang.Object
  extended by org.objectweb.dream.synchro.AbstractSemaphoreQueuedImpl.WaitQueue.WaitNode
All Implemented Interfaces:
Recyclable
Enclosing class:
AbstractSemaphoreQueuedImpl.WaitQueue

public static class AbstractSemaphoreQueuedImpl.WaitQueue.WaitNode
extends Object
implements Recyclable

An element of the queue.


Constructor Summary
AbstractSemaphoreQueuedImpl.WaitQueue.WaitNode()
           
 
Method Summary
protected  boolean doTimedWait(AbstractSemaphoreQueuedImpl sem, long msecs)
           
protected  void doWait(AbstractSemaphoreQueuedImpl sem)
           
 Reference<? extends Recyclable> getReference()
           
 void recycle()
           
 void setReference(Reference<? extends Recyclable> recyclableReference)
           
protected  boolean signal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSemaphoreQueuedImpl.WaitQueue.WaitNode

public AbstractSemaphoreQueuedImpl.WaitQueue.WaitNode()
Method Detail

signal

protected boolean signal()

doTimedWait

protected boolean doTimedWait(AbstractSemaphoreQueuedImpl sem,
                              long msecs)
                       throws InterruptedException
Throws:
InterruptedException

doWait

protected void doWait(AbstractSemaphoreQueuedImpl sem)
               throws InterruptedException
Throws:
InterruptedException

recycle

public void recycle()
Specified by:
recycle in interface Recyclable
See Also:
Recyclable.recycle()

getReference

public Reference<? extends Recyclable> getReference()
Specified by:
getReference in interface Recyclable
See Also:
Recyclable.getReference()

setReference

public void setReference(Reference<? extends Recyclable> recyclableReference)
Specified by:
setReference in interface Recyclable
See Also:
Recyclable.setReference(Reference)


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.