public interface CountDownLatch extends Awaitable
Modifier and Type | Interface and Description |
---|---|
static class |
CountDownLatch.Async |
static class |
CountDownLatch.Sync |
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Modifier and Type | Method and Description |
---|---|
int |
count() |
void |
decrement()
Count down by 1, signalling waiters if we have reached zero
|
static CountDownLatch |
newCountDownLatch(int count)
Factory method used to capture and redirect instantiations for simulation
|
await, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntil, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
void decrement()
int count()
static CountDownLatch newCountDownLatch(int count)
Copyright © 2009-2022 The Apache Software Foundation