org.jboss.util
Interface WaitSync

All Superinterfaces:
Sync (src)
All Known Implementing Classes:
WaitSemaphore (src)

public interface WaitSync
extends Sync (src)

Interface that gives wait - notify primitives to implementors.

See Also:
Semaphore (src)

Method Summary
 void doNotify()
          Wakes up this sync that has been posed in wait status by a doWait() call.
 void doWait()
          Pone in wait status this sync, until doNotify() is called to wake it up.
 
Methods inherited from interface org.jboss.util.Sync (src)
acquire, release
 

Method Detail

doWait

public void doWait()
            throws java.lang.InterruptedException
Pone in wait status this sync, until doNotify() is called to wake it up.

Throws:
java.lang.InterruptedException
See Also:
doNotify()

doNotify

public void doNotify()
              throws java.lang.InterruptedException
Wakes up this sync that has been posed in wait status by a doWait() call. If this sync is not waiting, invoking this method should have no effect.

Throws:
java.lang.InterruptedException
See Also:
doWait()