Class AbstractLatch

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  AbstractLatch.CountSync
      Look at the doc and examples provided by AbstractQueuedSynchronizer for more information
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void await()  
      boolean await​(long milliseconds)  
      boolean await​(long timeWait, java.util.concurrent.TimeUnit timeUnit)  
      abstract void countDown()  
      abstract void countDown​(int count)  
      void countUp()  
      int getCount()  
      void setCount​(int count)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractLatch

        public AbstractLatch()
      • AbstractLatch

        public AbstractLatch​(int count)
    • Method Detail

      • getCount

        public int getCount()
      • setCount

        public void setCount​(int count)
      • countUp

        public void countUp()
      • countDown

        public abstract void countDown()
      • countDown

        public abstract void countDown​(int count)
      • await

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

        public boolean await​(long milliseconds)
                      throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • await

        public boolean await​(long timeWait,
                             java.util.concurrent.TimeUnit timeUnit)
                      throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException