Class CountDownLatch.Sync
- java.lang.Object
-
- org.apache.cassandra.utils.concurrent.Awaitable.AbstractAwaitable
-
- org.apache.cassandra.utils.concurrent.Awaitable.SyncAwaitable
-
- org.apache.cassandra.utils.concurrent.CountDownLatch.Sync
-
- All Implemented Interfaces:
Awaitable
,CountDownLatch
- Enclosing interface:
- CountDownLatch
public static final class CountDownLatch.Sync extends Awaitable.SyncAwaitable 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 Constructor Description Sync(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()
not synchronized as only intended for internal usage by externally synchronized methods-
Methods inherited from class org.apache.cassandra.utils.concurrent.Awaitable.SyncAwaitable
await, awaitUntil, waitUntil
-
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()
not synchronized as only intended for internal usage by externally synchronized methods- Specified by:
isSignalled
in classAwaitable.SyncAwaitable
-
-