Interface Condition

    • Method Detail

      • test

        boolean test()
      • awaitNanos

        void awaitNanos​(long timeout)
                 throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • await

        void await()
            throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • signal

        void signal()
      • progressiveYield

        static int progressiveYield​(int n)
      • onSpinWait

        static void onSpinWait()
      • waitStatus

        static boolean waitStatus​(long timeout,
                                  java.util.concurrent.TimeUnit unit,
                                  Condition condition)
                           throws java.lang.InterruptedException
        Wait for timeout on condition
        Parameters:
        timeout - - the amount of time in units to wait
        unit - - the time unit
        condition - - condition to wait for
        Returns:
        boolean - true if status was detected
        Throws:
        java.lang.InterruptedException - - on interrupt