Package com.intergral.deep.tests
Class ResettableCountDownLatch
- java.lang.Object
-
- com.intergral.deep.tests.ResettableCountDownLatch
-
public class ResettableCountDownLatch extends Object
-
-
Constructor Summary
Constructors Constructor Description ResettableCountDownLatch(int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawait()booleanawait(long timeout, TimeUnit unit)voidcountDown()longgetCount()voidreset()voidreset(int count)
-
-
-
Method Detail
-
reset
public void reset()
-
reset
public void reset(int count)
-
getCount
public long getCount()
-
countDown
public void countDown()
-
await
public void await() throws InterruptedException- Throws:
InterruptedException
-
await
public boolean await(long timeout, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-