Class CountDownLatch.Async
- java.lang.Object
-
- org.apache.cassandra.utils.concurrent.Awaitable.AbstractAwaitable
-
- org.apache.cassandra.utils.concurrent.Awaitable.AsyncAwaitable
-
- org.apache.cassandra.utils.concurrent.CountDownLatch.Async
-
- All Implemented Interfaces:
Awaitable,CountDownLatch
- Enclosing interface:
- CountDownLatch
public static class CountDownLatch.Async extends Awaitable.AsyncAwaitable implements CountDownLatch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
-
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.CountDownLatch
CountDownLatch.Async, CountDownLatch.Sync
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAsync(int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount()voiddecrement()Count down by 1, signalling waiters if we have reached zeroprotected booleanisSignalled()Return true once signalled.-
Methods inherited from class org.apache.cassandra.utils.concurrent.Awaitable.AsyncAwaitable
await, awaitUntil, signal
-
Methods inherited from class org.apache.cassandra.utils.concurrent.Awaitable.AbstractAwaitable
await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
await, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntil, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
-
-
-
-
Method Detail
-
decrement
public void decrement()
Description copied from interface:CountDownLatchCount down by 1, signalling waiters if we have reached zero- Specified by:
decrementin interfaceCountDownLatch
-
count
public int count()
- Specified by:
countin interfaceCountDownLatch- Returns:
- the current count
-
isSignalled
protected boolean isSignalled()
Description copied from class:Awaitable.AsyncAwaitableReturn true once signalled. Unidirectional; once true, must never again be false.- Specified by:
isSignalledin classAwaitable.AsyncAwaitable
-
-