Class Condition.Sync
- java.lang.Object
-
- org.apache.cassandra.utils.concurrent.Awaitable.AbstractAwaitable
-
- org.apache.cassandra.utils.concurrent.Awaitable.SyncAwaitable
-
- org.apache.cassandra.utils.concurrent.Condition.Sync
-
- Enclosing interface:
- Condition
public static class Condition.Sync extends Awaitable.SyncAwaitable implements Condition
ACondition
based on its object monitor. WARNING: lengthy operations performed while holding the lock may prevent timely notification of waiting threads that a deadline has passed.
-
-
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.Condition
Condition.Async, Condition.Sync
-
-
Constructor Summary
Constructors Constructor Description Sync()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSignalled()
Return true once signalled.void
signal()
Signal the condition as met, and wake all waiting threads.-
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
-
isSignalled
public boolean isSignalled()
Description copied from class:Awaitable.SyncAwaitable
Return true once signalled. Unidirectional; once true, must never again be false.- Specified by:
isSignalled
in interfaceCondition
- Specified by:
isSignalled
in classAwaitable.SyncAwaitable
-
-