Uses of Interface
org.apache.cassandra.utils.concurrent.Awaitable
Packages that use Awaitable
Package
Description
-
Uses of Awaitable in org.apache.cassandra.concurrent
Classes in org.apache.cassandra.concurrent that implement AwaitableModifier and TypeClassDescriptionclassFutureTask<V>A FutureTask that utilises Cassandra'sAsyncFuture, making it compatible withExecutorPlus.classA FutureTask that utilises Cassandra'sAsyncFuture, making it compatible withExecutorPlus.class -
Uses of Awaitable in org.apache.cassandra.net
Classes in org.apache.cassandra.net that implement AwaitableModifier and TypeClassDescriptionclassSeeAsyncPromiseandChannelPromiseThis class is all boiler plate, just ensuring we return ourselves and invoke the correct Promise method.classA callback specialized for returning a value from a single target; that is, this is for messages that we only send to one recipient. -
Uses of Awaitable in org.apache.cassandra.repair
Classes in org.apache.cassandra.repair that implement AwaitableModifier and TypeClassDescriptionclassAsymmetricRemoteSyncTask sendsSyncRequestto target node to repair(stream) data with other target replica.classLocalSyncTask performs streaming between local(coordinator) node and remote replica.classRepairJob runs repair on given ColumnFamily.classCoordinates the (active) repair of a list of non overlapping token ranges.static classclassSnapshotTask is a task that sends snapshot request.classSymmetricRemoteSyncTask sendsSyncRequestto remote(non-coordinator) node to repair(stream) data with other replica.classclassValidationTask sendsValidationRequestto a replica. -
Uses of Awaitable in org.apache.cassandra.schema
Methods in org.apache.cassandra.schema that return Awaitable -
Uses of Awaitable in org.apache.cassandra.service.paxos.cleanup
Classes in org.apache.cassandra.service.paxos.cleanup that implement AwaitableModifier and TypeClassDescriptionclassclassclassclassclassclassDetermines the highest ballot we should attempt to repair -
Uses of Awaitable in org.apache.cassandra.service.reads.repair
Classes in org.apache.cassandra.service.reads.repair that implement Awaitable -
Uses of Awaitable in org.apache.cassandra.streaming
Classes in org.apache.cassandra.streaming that implement AwaitableModifier and TypeClassDescriptionfinal classA future on the result (StreamState) of a streaming plan. -
Uses of Awaitable in org.apache.cassandra.utils.concurrent
Subinterfaces of Awaitable in org.apache.cassandra.utils.concurrentModifier and TypeInterfaceDescriptioninterfaceSimpler API than java.util.concurrent.Condition; would be nice to extend it, but also nice to share API with Future, for which Netty's API is incompatible with java.util.concurrent.ConditionAwaitablefor explicit external signals.interfaceinterfaceinterfaceFuture<V>A Future that integrates several different (but equivalent) APIs used within Cassandra into a single concept, integrating also with ourAwaitableabstraction, to overall improve coherency and clarity in the codebase.interfacePromise<V>A Promise that integratesPromisewith ourFutureAPI to improve clarity and coherence in the codebase.interfacestatic interfaceA Signal is a one-time-use mechanism for a thread to wait for notification that some condition state has transitioned that it may be interested in (and hence should check if it is).Classes in org.apache.cassandra.utils.concurrent that implement AwaitableModifier and TypeClassDescriptionclassOur defaultFutureimplementation, with all state being managed without locks (except those used by the JVM).classAsyncFuture<V>Our defaultFutureimplementation, with all state being managed without locks (except those used by the JVM).classAsyncPromise<V>ExtendsAsyncFutureto implement thePromiseinterface.static classstatic classstatic classA barebones asynchronousAwaitable.static classA barebonesAwaitablethat uses mutual exclusion.static classAn asynchronousCondition.static classAConditionbased on its object monitor.static classstatic classstatic final classclassNetty's PromiseCombiner is not threadsafe, and we combine futures from multiple event executors.classclassSyncFuture<V>Netty's DefaultPromise uses a mutex to coordinate notifiers AND waiters between the eventLoop and the other threads.classSyncPromise<V>ExtendsSyncFutureto implement thePromiseinterface.static classstatic classAn abstract signal implementation TODO: use intrusive linked listMethods in org.apache.cassandra.utils.concurrent with type parameters of type AwaitableModifier and TypeMethodDescriptionstatic <A extends Awaitable>
AAwaitable.Defaults.awaitThrowUncheckedOnInterrupt(A await) static <A extends Awaitable>
AAwaitable.Defaults.awaitUninterruptibly(A await) Methods in org.apache.cassandra.utils.concurrent that return AwaitableModifier and TypeMethodDescriptionAwaitable.AsyncAwaitable.await()Awaitable.await()Await indefinitely, throwing any interrupt.Awaitable.SyncAwaitable.await()WaitQueue.Signal.await()Await indefinitely, throwing any interrupt.Awaitable.AbstractAwaitable.awaitThrowUncheckedOnInterrupt()Awaitable.awaitThrowUncheckedOnInterrupt()Await indefinitely, throwing any interrupt as an unchecked exception.Awaitable.AbstractAwaitable.awaitUninterruptibly()Awaitable.awaitUninterruptibly()Await indefinitely, ignoring interrupts (but maintaining the interrupt flag on exit).Methods in org.apache.cassandra.utils.concurrent with parameters of type AwaitableModifier and TypeMethodDescriptionstatic booleanstatic booleanAwaitable.Defaults.awaitThrowUncheckedOnInterrupt(Awaitable await, long time, TimeUnit units) static booleanAwaitable.Defaults.awaitUninterruptibly(Awaitable await, long time, TimeUnit units) static booleanAwaitable.Defaults.awaitUntilThrowUncheckedOnInterrupt(Awaitable await, long nanoTimeDeadline) static booleanAwaitable.Defaults.awaitUntilUninterruptibly(Awaitable await, long nanoTimeDeadline)