Interface CountDownLatch
- All Superinterfaces:
Awaitable
- All Known Implementing Classes:
CountDownLatch.Async,CountDownLatch.Sync
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic final classNested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable -
Method Summary
Modifier and TypeMethodDescriptionintcount()voidCount down by 1, signalling waiters if we have reached zerostatic CountDownLatchnewCountDownLatch(int count) Factory method used to capture and redirect instantiations for simulationMethods inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
await, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntil, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
-
Method Details
-
decrement
void decrement()Count down by 1, signalling waiters if we have reached zero -
count
int count()- Returns:
- the current count
-
newCountDownLatch
Factory method used to capture and redirect instantiations for simulation
-