Interface CountDownLatch
-
- All Superinterfaces:
Awaitable
- All Known Implementing Classes:
CountDownLatch.Async
,CountDownLatch.Sync
public interface CountDownLatch extends Awaitable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CountDownLatch.Async
static class
CountDownLatch.Sync
-
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description int
count()
void
decrement()
Count down by 1, signalling waiters if we have reached zerostatic CountDownLatch
newCountDownLatch(int count)
Factory method used to capture and redirect instantiations for simulation-
Methods inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
await, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntil, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
-
-
-
-
Method Detail
-
decrement
void decrement()
Count down by 1, signalling waiters if we have reached zero
-
count
int count()
- Returns:
- the current count
-
newCountDownLatch
static CountDownLatch newCountDownLatch(int count)
Factory method used to capture and redirect instantiations for simulation
-
-