@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class ResettableCountDownLatch extends Object
| Constructor and Description |
|---|
ResettableCountDownLatch(int count) |
ResettableCountDownLatch(int count,
boolean setInitialState) |
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
boolean |
await(long timeout,
TimeUnit unit) |
void |
countDown() |
long |
getCount() |
void |
reset() |
public ResettableCountDownLatch(int count)
public ResettableCountDownLatch(int count,
boolean setInitialState)
public void countDown()
public void reset()
public void await()
throws InterruptedException
InterruptedExceptionpublic boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic long getCount()
Copyright © 2016–2021. All rights reserved.