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 class
FutureTask<V>
A FutureTask that utilises Cassandra'sAsyncFuture
, making it compatible withExecutorPlus
.class
FutureTaskWithResources<V>
A FutureTask that utilises Cassandra'sAsyncFuture
, making it compatible withExecutorPlus
.class
SyncFutureTask<T>
-
Uses of Awaitable in org.apache.cassandra.net
Classes in org.apache.cassandra.net that implement Awaitable Modifier and Type Class Description class
AsyncChannelPromise
SeeAsyncPromise
andChannelPromise
This class is all boiler plate, just ensuring we return ourselves and invoke the correct Promise method.class
AsyncOneResponse<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 class
AsymmetricRemoteSyncTask
AsymmetricRemoteSyncTask sendsSyncRequest
to target node to repair(stream) data with other target replica.class
LocalSyncTask
LocalSyncTask performs streaming between local(coordinator) node and remote replica.class
RepairJob
RepairJob runs repair on given ColumnFamily.class
RepairSession
Coordinates the (active) repair of a list of non overlapping token ranges.static class
Scheduler.Task<T>
class
SnapshotTask
SnapshotTask is a task that sends snapshot request.class
SymmetricRemoteSyncTask
SymmetricRemoteSyncTask sendsSyncRequest
to remote(non-coordinator) node to repair(stream) data with other replica.class
SyncTask
class
ValidationTask
ValidationTask sendsValidationRequest
to a replica. -
Uses of Awaitable in org.apache.cassandra.schema
Methods in org.apache.cassandra.schema that return Awaitable Modifier and Type Method Description Awaitable
DefaultSchemaUpdateHandler. clear()
When clear is called the update handler will flag that the clear was requested.Awaitable
OfflineSchemaUpdateHandler. clear()
Awaitable
SchemaUpdateHandler. 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 class
PaxosCleanup
class
PaxosCleanupComplete
class
PaxosCleanupLocalCoordinator
class
PaxosCleanupSession
class
PaxosFinishPrepareCleanup
class
PaxosStartPrepareCleanup
Determines 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 class
BlockingPartitionRepair
-
Uses of Awaitable in org.apache.cassandra.streaming
Classes in org.apache.cassandra.streaming that implement Awaitable Modifier and Type Class Description class
StreamResultFuture
A 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 interface
Condition
Simpler 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.ConditionAwaitable
for explicit external signals.interface
ConditionAsConsumer<T>
interface
CountDownLatch
interface
Future<V>
A Future that integrates several different (but equivalent) APIs used within Cassandra into a single concept, integrating also with ourAwaitable
abstraction, to overall improve coherency and clarity in the codebase.interface
Promise<V>
A Promise that integratesPromise
with ourFuture
API to improve clarity and coherence in the codebase.interface
RunnableFuture<V>
static interface
WaitQueue.Signal
A 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 class
AbstractFuture<V>
Our defaultFuture
implementation, with all state being managed without locks (except those used by the JVM).class
AsyncFuture<V>
Our defaultFuture
implementation, with all state being managed without locks (except those used by the JVM).class
AsyncPromise<V>
ExtendsAsyncFuture
to implement thePromise
interface.static class
AsyncPromise.WithExecutor<V>
static class
Awaitable.AbstractAwaitable
static class
Awaitable.AsyncAwaitable
A barebones asynchronousAwaitable
.static class
Awaitable.SyncAwaitable
A barebonesAwaitable
that uses mutual exclusion.static class
Condition.Async
An asynchronousCondition
.static class
Condition.Sync
ACondition
based on its object monitor.static class
ConditionAsConsumer.Async<T>
static class
CountDownLatch.Async
static class
CountDownLatch.Sync
class
FutureCombiner<T>
Netty's PromiseCombiner is not threadsafe, and we combine futures from multiple event executors.class
ImmediateFuture<V>
class
SyncFuture<V>
Netty's DefaultPromise uses a mutex to coordinate notifiers AND waiters between the eventLoop and the other threads.class
SyncPromise<V>
ExtendsSyncFuture
to implement thePromise
interface.static class
SyncPromise.WithExecutor<V>
static class
WaitQueue.Standard.AbstractSignal
An 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 Awaitable
Awaitable.AsyncAwaitable. await()
Awaitable
Awaitable. await()
Await indefinitely, throwing any interrupt.Awaitable
Awaitable.SyncAwaitable. await()
Awaitable
Awaitable.AbstractAwaitable. awaitThrowUncheckedOnInterrupt()
Awaitable
Awaitable. awaitThrowUncheckedOnInterrupt()
Await indefinitely, throwing any interrupt as an unchecked exception.Awaitable
Awaitable.AbstractAwaitable. awaitUninterruptibly()
Awaitable
Awaitable. 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 boolean
Awaitable.Defaults. await(Awaitable await, long time, java.util.concurrent.TimeUnit unit)
static boolean
Awaitable.Defaults. awaitThrowUncheckedOnInterrupt(Awaitable await, long time, java.util.concurrent.TimeUnit units)
static boolean
Awaitable.Defaults. awaitUninterruptibly(Awaitable await, long time, java.util.concurrent.TimeUnit units)
static boolean
Awaitable.Defaults. awaitUntilThrowUncheckedOnInterrupt(Awaitable await, long nanoTimeDeadline)
static boolean
Awaitable.Defaults. awaitUntilUninterruptibly(Awaitable await, long nanoTimeDeadline)
-