Class Latch

java.lang.Object
org.cometd.javascript.Latch

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

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

    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 Details

    • Latch

      public Latch​(int count)
  • Method Details

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