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 protected
Async(int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
void
decrement()
Count down by 1, signalling waiters if we have reached zeroprotected boolean
isSignalled()
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:CountDownLatch
Count down by 1, signalling waiters if we have reached zero- Specified by:
decrement
in interfaceCountDownLatch
-
count
public int count()
- Specified by:
count
in interfaceCountDownLatch
- Returns:
- the current count
-
isSignalled
protected boolean isSignalled()
Description copied from class:Awaitable.AsyncAwaitable
Return true once signalled. Unidirectional; once true, must never again be false.- Specified by:
isSignalled
in classAwaitable.AsyncAwaitable
-
-