Class BlockingLatch


  • public class BlockingLatch
    extends java.lang.Object
    Created by acurtis on 10/16/17.
    • Constructor Detail

      • BlockingLatch

        public BlockingLatch()
    • Method Detail

      • await

        public final void await()
                         throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • awaitUninterruptibly

        public final void awaitUninterruptibly()
      • await

        public final void await​(long time,
                                java.util.concurrent.TimeUnit unit)
                         throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • awaitUninterruptibly

        public final void awaitUninterruptibly​(long time,
                                               java.util.concurrent.TimeUnit unit)
      • unblock

        public void unblock()
      • block

        public void block()
      • isBlocking

        public final boolean isBlocking()
      • setBlock

        public void setBlock​(boolean enabled)