Package hudson.plugins.ec2.util
Class ResettableCountDownLatch
- java.lang.Object
-
- hudson.plugins.ec2.util.ResettableCountDownLatch
-
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class ResettableCountDownLatch extends Object
-
-
Constructor Summary
Constructors Constructor Description ResettableCountDownLatch(int count)
ResettableCountDownLatch(int count, boolean setInitialState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
await()
boolean
await(long timeout, TimeUnit unit)
void
countDown()
long
getCount()
void
reset()
-
-
-
Method Detail
-
countDown
public void countDown()
-
reset
public void reset()
-
await
public void await() throws InterruptedException
- Throws:
InterruptedException
-
await
public boolean await(long timeout, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
getCount
public long getCount()
-
-