Class Latch


  • public class Latch
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Latch​(int count)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean await​(long timeout)  
      void countDown()  
      long getCount()  
      void reset​(int count)  
      • Methods inherited from class java.lang.Object

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

      • Latch

        public Latch​(int count)
    • Method Detail

      • reset

        public void reset​(int count)
      • await

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

        public void countDown()
      • getCount

        public long getCount()