Uses of Interface
org.apache.cassandra.utils.concurrent.Awaitable
-
-
Uses of Awaitable in org.apache.cassandra.concurrent
Classes in org.apache.cassandra.concurrent that implement Awaitable Modifier and Type Class Description classFutureTask<V>A FutureTask that utilises Cassandra'sAsyncFuture, making it compatible withExecutorPlus.classFutureTaskWithResources<V>A FutureTask that utilises Cassandra'sAsyncFuture, making it compatible withExecutorPlus.classSyncFutureTask<T> -
Uses of Awaitable in org.apache.cassandra.net
Classes in org.apache.cassandra.net that implement Awaitable Modifier and Type Class Description classAsyncChannelPromiseSeeAsyncPromiseandChannelPromiseThis class is all boiler plate, just ensuring we return ourselves and invoke the correct Promise method.classAsyncOneResponse<T>A 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 Awaitable Modifier and Type Class Description classAsymmetricRemoteSyncTaskAsymmetricRemoteSyncTask sendsSyncRequestto target node to repair(stream) data with other target replica.classLocalSyncTaskLocalSyncTask performs streaming between local(coordinator) node and remote replica.classRepairJobRepairJob runs repair on given ColumnFamily.classRepairSessionCoordinates the (active) repair of a list of non overlapping token ranges.static classScheduler.Task<T>classSnapshotTaskSnapshotTask is a task that sends snapshot request.classSymmetricRemoteSyncTaskSymmetricRemoteSyncTask sendsSyncRequestto remote(non-coordinator) node to repair(stream) data with other replica.classSyncTaskclassValidationTaskValidationTask sendsValidationRequestto a replica. -
Uses of Awaitable in org.apache.cassandra.schema
Methods in org.apache.cassandra.schema that return Awaitable Modifier and Type Method Description AwaitableDefaultSchemaUpdateHandler. clear()When clear is called the update handler will flag that the clear was requested.AwaitableOfflineSchemaUpdateHandler. clear()AwaitableSchemaUpdateHandler. clear()Marks the local schema to be cleared and refreshed. -
Uses of Awaitable in org.apache.cassandra.service.paxos.cleanup
Classes in org.apache.cassandra.service.paxos.cleanup that implement Awaitable Modifier and Type Class Description classPaxosCleanupclassPaxosCleanupCompleteclassPaxosCleanupLocalCoordinatorclassPaxosCleanupSessionclassPaxosFinishPrepareCleanupclassPaxosStartPrepareCleanupDetermines 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 Modifier and Type Class Description classBlockingPartitionRepair -
Uses of Awaitable in org.apache.cassandra.streaming
Classes in org.apache.cassandra.streaming that implement Awaitable Modifier and Type Class Description classStreamResultFutureA 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.concurrent Modifier and Type Interface Description interfaceConditionSimpler 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.interfaceConditionAsConsumer<T>interfaceCountDownLatchinterfaceFuture<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.interfaceRunnableFuture<V>static interfaceWaitQueue.SignalA 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 Awaitable Modifier and Type Class Description classAbstractFuture<V>Our 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 classAsyncPromise.WithExecutor<V>static classAwaitable.AbstractAwaitablestatic classAwaitable.AsyncAwaitableA barebones asynchronousAwaitable.static classAwaitable.SyncAwaitableA barebonesAwaitablethat uses mutual exclusion.static classCondition.AsyncAn asynchronousCondition.static classCondition.SyncAConditionbased on its object monitor.static classConditionAsConsumer.Async<T>static classCountDownLatch.Asyncstatic classCountDownLatch.SyncclassFutureCombiner<T>Netty's PromiseCombiner is not threadsafe, and we combine futures from multiple event executors.classImmediateFuture<V>classSyncFuture<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 classSyncPromise.WithExecutor<V>static classWaitQueue.Standard.AbstractSignalAn abstract signal implementation TODO: use intrusive linked listMethods in org.apache.cassandra.utils.concurrent with type parameters of type Awaitable Modifier and Type Method Description static <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 Awaitable Modifier and Type Method Description AwaitableAwaitable.AsyncAwaitable. await()AwaitableAwaitable. await()Await indefinitely, throwing any interrupt.AwaitableAwaitable.SyncAwaitable. await()AwaitableWaitQueue.Signal. await()Await indefinitely, throwing any interrupt.AwaitableAwaitable.AbstractAwaitable. awaitThrowUncheckedOnInterrupt()AwaitableAwaitable. awaitThrowUncheckedOnInterrupt()Await indefinitely, throwing any interrupt as an unchecked exception.AwaitableAwaitable.AbstractAwaitable. awaitUninterruptibly()AwaitableAwaitable. awaitUninterruptibly()Await indefinitely, ignoring interrupts (but maintaining the interrupt flag on exit).Methods in org.apache.cassandra.utils.concurrent with parameters of type Awaitable Modifier and Type Method Description static booleanAwaitable.Defaults. await(Awaitable await, long time, java.util.concurrent.TimeUnit unit)static booleanAwaitable.Defaults. awaitThrowUncheckedOnInterrupt(Awaitable await, long time, java.util.concurrent.TimeUnit units)static booleanAwaitable.Defaults. awaitUninterruptibly(Awaitable await, long time, java.util.concurrent.TimeUnit units)static booleanAwaitable.Defaults. awaitUntilThrowUncheckedOnInterrupt(Awaitable await, long nanoTimeDeadline)static booleanAwaitable.Defaults. awaitUntilUninterruptibly(Awaitable await, long nanoTimeDeadline)
-