Package org.cometd.javascript
Class Latch
- java.lang.Object
-
- org.cometd.javascript.Latch
-
public class Latch extends Object
-
-
Constructor Summary
Constructors Constructor Description Latch(int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawait(long timeout)voidcountDown()longgetCount()voidreset(int count)
-
-
-
Method Detail
-
reset
public void reset(int count)
-
await
public boolean await(long timeout) throws InterruptedException- Throws:
InterruptedException
-
countDown
public void countDown()
-
getCount
public long getCount()
-
-