Interface WaitSync

  • All Superinterfaces:
    Sync
    All Known Implementing Classes:
    WaitSemaphore

    public interface WaitSync
    extends Sync
    Interface that gives wait - notify primitives to implementors.
    Version:
    $Revision$
    See Also:
    Semaphore
    • Method Detail

      • doWait

        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

        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()