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.SyncAwaitableNested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.CountDownLatch
CountDownLatch.Async, CountDownLatch.Sync -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcount()voidCount down by 1, signalling waiters if we have reached zeroprotected booleannot synchronized as only intended for internal usage by externally synchronized methodsMethods inherited from class org.apache.cassandra.utils.concurrent.Awaitable.SyncAwaitable
await, awaitUntil, waitUntilMethods inherited from class org.apache.cassandra.utils.concurrent.Awaitable.AbstractAwaitable
await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptiblyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
await, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntil, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
-
Constructor Details
-
Sync
public Sync(int count)
-
-
Method Details
-
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()not synchronized as only intended for internal usage by externally synchronized methods- Specified by:
isSignalledin classAwaitable.SyncAwaitable
-