Uses of Interface
org.apache.cassandra.utils.concurrent.Future
Packages that use Future
Package
Description
Hints subsystem consists of several components.
Non-blocking streaming with netty
-
Uses of Future in org.apache.cassandra.batchlog
Methods in org.apache.cassandra.batchlog that return Future -
Uses of Future in org.apache.cassandra.cache
Methods in org.apache.cassandra.cache that return FutureModifier and TypeMethodDescriptionAutoSavingCache.CacheSerializer.deserialize(DataInputPlus in) AutoSavingCache.loadSavedAsync()Future<?>AutoSavingCache.submitWrite(int keysToSave) -
Uses of Future in org.apache.cassandra.concurrent
Classes in org.apache.cassandra.concurrent that implement FutureModifier and TypeClassDescriptionclassFutureTask<V>A FutureTask that utilises Cassandra'sAsyncFuture, making it compatible withExecutorPlus.classA FutureTask that utilises Cassandra'sAsyncFuture, making it compatible withExecutorPlus.classMethods in org.apache.cassandra.concurrent that return FutureModifier and TypeMethodDescriptionFuture<?>OverridesExecutorService.submit(Runnable)to return a CassandraFuture<T> Future<T>OverridesExecutorService.submit(Runnable, Object)to return a CassandraFuture<T> Future<T>OverridesExecutorService.submit(Callable)to return a CassandraFutureFuture<?>ExecutorPlus.submit(WithResources withResources, Runnable task) Invoketask, returning a future yieldingnullif successful, or the abnormal termination oftaskotherwise.<T> Future<T>ExecutorPlus.submit(WithResources withResources, Runnable task, T result) Invoketask, returning a future yieldingresultif successful, or the abnormal termination oftaskotherwise.<T> Future<T>ExecutorPlus.submit(WithResources withResources, Callable<T> task) Invoketask, returning a future representing this computation.Future<?><T> Future<T><T> Future<T>Future<?>ImmediateExecutor.submit(WithResources withResources, Runnable task) <T> Future<T>ImmediateExecutor.submit(WithResources withResources, Runnable task, T result) <T> Future<T>ImmediateExecutor.submit(WithResources withResources, Callable<T> task) Future<?><T> Future<T><T> Future<T>Future<?>ScheduledThreadPoolExecutorPlus.submit(WithResources withResources, Runnable run) <T> Future<T>ScheduledThreadPoolExecutorPlus.submit(WithResources withResources, Runnable run, T result) <T> Future<T>ScheduledThreadPoolExecutorPlus.submit(WithResources withResources, Callable<T> call) Future<?><T> Future<T><T> Future<T>Future<?>SEPExecutor.submit(WithResources withResources, Runnable run) <T> Future<T>SEPExecutor.submit(WithResources withResources, Runnable run, T result) <T> Future<T>SEPExecutor.submit(WithResources withResources, Callable<T> call) Future<?><T> Future<T><T> Future<T>Future<?><T> Future<T><T> Future<T>Future<?>ThreadPoolExecutorPlus.submit(WithResources withResources, Runnable run) <T> Future<T>ThreadPoolExecutorPlus.submit(WithResources withResources, Runnable run, T result) <T> Future<T>ThreadPoolExecutorPlus.submit(WithResources withResources, Callable<T> call) Future<?><T> Future<T><T> Future<T>Future<?>WrappedExecutorPlus.submit(WithResources withResources, Runnable task) <T> Future<T>WrappedExecutorPlus.submit(WithResources withResources, Runnable task, T result) <T> Future<T>WrappedExecutorPlus.submit(WithResources withResources, Callable<T> task) -
Uses of Future in org.apache.cassandra.cql3
Methods in org.apache.cassandra.cql3 that return FutureModifier and TypeMethodDescriptionstatic Future<UntypedResultSet>QueryProcessor.executeAsync(InetAddressAndPort address, String query, Object... values) -
Uses of Future in org.apache.cassandra.db
Methods in org.apache.cassandra.db that return FutureModifier and TypeMethodDescriptionFuture<?>Keyspace.applyFuture(Mutation mutation, boolean writeCommitLog, boolean updateIndexes) Future<?>Keyspace.applyFuture(Mutation mutation, boolean writeCommitLog, boolean updateIndexes, boolean isDroppable, boolean isDeferrable) Future<?>Mutation.applyFuture()ColumnFamilyStore.dumpMemtable()Drops current memtable without flushing to disk.ColumnFamilyStore.forceFlush(ColumnFamilyStore.FlushReason reason) Flush if there is unflushed data in the memtablesFuture<?>ColumnFamilyStore.forceFlush(CommitLogPosition flushIfDirtyBefore) Flush if there is unflushed data that was written to the CommitLog before @param flushIfDirtyBefore (inclusive).ColumnFamilyStore.signalFlushRequired(Memtable memtable, ColumnFamilyStore.FlushReason reason) ColumnFamilyStore.switchMemtable(ColumnFamilyStore.FlushReason reason) ColumnFamilyStore.switchMemtableIfCurrent(Memtable memtable, ColumnFamilyStore.FlushReason reason) Switches the memtable iff the live memtable is the one providedMethods in org.apache.cassandra.db that return types with arguments of type Future -
Uses of Future in org.apache.cassandra.db.commitlog
Methods in org.apache.cassandra.db.commitlog that return FutureModifier and TypeMethodDescriptionCommitLogReplayer.MutationInitiator.initiateMutation(Mutation mutation, long segmentId, int serializedSize, int entryLocation, CommitLogReplayer commitLogReplayer) -
Uses of Future in org.apache.cassandra.db.compaction
Methods in org.apache.cassandra.db.compaction that return FutureModifier and TypeMethodDescriptionFuture<?>CompactionManager.submitCacheWrite(AutoSavingCache.Writer writer) Future<?>CompactionManager.submitIndexBuild(SecondaryIndexBuilder builder) Is not scheduled, because it is performing disjoint work from sstable compaction.CompactionManager.submitPendingAntiCompaction(ColumnFamilyStore cfs, RangesAtEndpoint tokenRanges, Refs<SSTableReader> sstables, LifecycleTransaction txn, TimeUUID sessionId, BooleanSupplier isCancelled) Splits the given token ranges of the given sstables into a pending repair siloFuture<?>CompactionManager.submitUserDefined(ColumnFamilyStore cfs, Collection<Descriptor> dataFiles, long gcBefore) Future<?>CompactionManager.submitValidation(Callable<Object> validation) CompactionManager.submitViewBuilder(ViewBuilderTask task) Methods in org.apache.cassandra.db.compaction that return types with arguments of type FutureModifier and TypeMethodDescriptionCompactionManager.submitBackground(ColumnFamilyStore cfs) Call this whenever a compaction might be needed on the given columnfamily.CompactionManager.submitMaximal(ColumnFamilyStore cfStore, long gcBefore, boolean splitOutput) CompactionManager.submitMaximal(ColumnFamilyStore cfStore, long gcBefore, boolean splitOutput, OperationType operationType) -
Uses of Future in org.apache.cassandra.db.memtable
Methods in org.apache.cassandra.db.memtable that return FutureModifier and TypeMethodDescriptionAbstractAllocatorMemtable.flushLargestMemtable()Finds the largest memtable, as a percentage of *either* on- or off-heap memory limits, and immediately queues it for flushing.Memtable.Owner.signalFlushRequired(Memtable memtable, ColumnFamilyStore.FlushReason reason) Signal to the owner that a flush is required (e.g. -
Uses of Future in org.apache.cassandra.db.repair
Methods in org.apache.cassandra.db.repair that return FutureModifier and TypeMethodDescriptionCassandraKeyspaceRepairManager.prepareIncrementalRepair(TimeUUID sessionID, Collection<ColumnFamilyStore> tables, RangesAtEndpoint tokenRanges, ExecutorService executor, BooleanSupplier isCancelled) PendingAntiCompaction.run() -
Uses of Future in org.apache.cassandra.dht
Methods in org.apache.cassandra.dht that return FutureModifier and TypeMethodDescriptionBootStrapper.bootstrap(StreamStateStore stateStore, boolean useStrictConsistency) -
Uses of Future in org.apache.cassandra.hints
Methods in org.apache.cassandra.hints that return FutureModifier and TypeMethodDescriptionHintsService.transferHints(Supplier<UUID> hostIdSupplier) Transfer all local hints to the hostId supplied by hostIdSupplier Flushes the buffer to make sure all hints are on disk and closes the hint writers so we don't leave any hint files around. -
Uses of Future in org.apache.cassandra.index
Methods in org.apache.cassandra.index that return FutureModifier and TypeMethodDescriptionFuture<?>SecondaryIndexManager.addIndex(IndexMetadata indexDef, boolean isNewCF) Adds and builds a indexSecondaryIndexManager.buildIndex(Index index) -
Uses of Future in org.apache.cassandra.net
Classes in org.apache.cassandra.net that implement FutureModifier 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.Methods in org.apache.cassandra.net that return FutureModifier and TypeMethodDescriptionMessageDelivery.sendWithResult(Message<REQ> message, InetAddressAndPort to) MessagingService.sendWithResult(Message<REQ> message, InetAddressAndPort to) -
Uses of Future in org.apache.cassandra.repair
Classes in org.apache.cassandra.repair that implement FutureModifier 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.Methods in org.apache.cassandra.repair that return FutureModifier and TypeMethodDescriptiondefault Future<CoordinatedRepairResult>RepairTask.perform(ExecutorPlus executor, Scheduler validationScheduler) IncrementalRepairTask.performUnsafe(ExecutorPlus executor, Scheduler validationScheduler) NormalRepairTask.performUnsafe(ExecutorPlus executor, Scheduler validationScheduler) PreviewRepairTask.performUnsafe(ExecutorPlus executor, Scheduler validationScheduler) RepairTask.performUnsafe(ExecutorPlus executor, Scheduler validationScheduler) KeyspaceRepairManager.prepareIncrementalRepair(TimeUUID sessionID, Collection<ColumnFamilyStore> tables, RangesAtEndpoint tokenRanges, ExecutorService executor, BooleanSupplier isCancelled) Isolate the unrepaired ranges of the given tables, and make referenceable by session id.protected Future<CoordinatedRepairResult>AbstractRepairTask.runRepair(TimeUUID parentSession, boolean isIncremental, ExecutorPlus executor, Scheduler validationScheduler, List<CommonRange> commonRanges, String... cfnames) default <T> Future<T>Method parameters in org.apache.cassandra.repair with type arguments of type FutureConstructor parameters in org.apache.cassandra.repair with type arguments of type Future -
Uses of Future in org.apache.cassandra.repair.consistent
Methods in org.apache.cassandra.repair.consistent that return FutureModifier and TypeMethodDescriptionCoordinatorSession.execute(Supplier<Future<CoordinatedRepairResult>> sessionSubmitter) Runs the asynchronous consistent repair session.CoordinatorSession.finalizePropose()CoordinatorSession.prepare()Method parameters in org.apache.cassandra.repair.consistent with type arguments of type FutureModifier and TypeMethodDescriptionCoordinatorSession.execute(Supplier<Future<CoordinatedRepairResult>> sessionSubmitter) Runs the asynchronous consistent repair session. -
Uses of Future in org.apache.cassandra.repair.messages
Methods in org.apache.cassandra.repair.messages with parameters of type Future -
Uses of Future in org.apache.cassandra.service
Methods in org.apache.cassandra.service that return FutureModifier and TypeMethodDescriptionFuture<?>StorageService.autoRepairPaxos(TableId tableId) CacheService.CounterCacheSerializer.deserialize(DataInputPlus in) CacheService.KeyCacheSerializer.deserialize(DataInputPlus input) CacheService.RowCacheSerializer.deserialize(DataInputPlus in) Future<?>ActiveRepairService.prepareForRepair(TimeUUID parentRepairSession, InetAddressAndPort coordinator, Set<InetAddressAndPort> endpoints, RepairOption options, boolean isForcedRepair, List<ColumnFamilyStore> columnFamilyStores) Future<?>ActiveRepairService.repairPaxosForTopologyChange(String ksName, Collection<Range<Token>> ranges, String reason) StorageService.startBootstrap(Collection<Token> tokens) StorageService.startBootstrap(Collection<Token> tokens, boolean replacing) Future<?>StorageService.startRepairPaxosForTopologyChange(String reason) Methods in org.apache.cassandra.service that return types with arguments of type FutureModifier and TypeMethodDescriptionStorageService.prepareUnbootstrapStreaming()StorageService.repair(String keyspace, Map<String, String> repairSpec, List<ProgressListener> listeners) StorageService.repair(String keyspace, RepairOption option, List<ProgressListener> listeners) -
Uses of Future in org.apache.cassandra.service.paxos.cleanup
Classes in org.apache.cassandra.service.paxos.cleanup that implement FutureModifier and TypeClassDescriptionclassclassclassclassclassclassDetermines the highest ballot we should attempt to repair -
Uses of Future in org.apache.cassandra.service.reads.repair
Classes in org.apache.cassandra.service.reads.repair that implement Future -
Uses of Future in org.apache.cassandra.streaming
Classes in org.apache.cassandra.streaming that implement FutureModifier and TypeClassDescriptionfinal classA future on the result (StreamState) of a streaming plan. -
Uses of Future in org.apache.cassandra.streaming.async
Methods in org.apache.cassandra.streaming.async that return FutureModifier and TypeMethodDescriptionFuture<?>NettyStreamingChannel.send(StreamingChannel.Send send) -
Uses of Future in org.apache.cassandra.utils
Methods in org.apache.cassandra.utils that return FutureModifier and TypeMethodDescriptionFBUtilities.allOf(Collection<? extends Future<? extends T>> futures) Returns a newFuturewrapping the given list of futures and returning a list of their results.Method parameters in org.apache.cassandra.utils with type arguments of type Future -
Uses of Future in org.apache.cassandra.utils.concurrent
Subinterfaces of Future in org.apache.cassandra.utils.concurrentModifier and TypeInterfaceDescriptioninterfacePromise<V>A Promise that integratesPromisewith ourFutureAPI to improve clarity and coherence in the codebase.interfaceClasses in org.apache.cassandra.utils.concurrent that implement FutureModifier 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 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 classMethods in org.apache.cassandra.utils.concurrent that return FutureModifier and TypeMethodDescriptionAbstractFuture.addCallback(BiConsumer<? super V, Throwable> callback, Executor executor) Future.addCallback(com.google.common.util.concurrent.FutureCallback<? super V> callback) SupportFutures.addCallback(com.google.common.util.concurrent.ListenableFuture<V>, com.google.common.util.concurrent.FutureCallback<? super V>, java.util.concurrent.Executor)nativelyFuture.addCallback(com.google.common.util.concurrent.FutureCallback<? super V> callback, Executor executor) SupportFutures.addCallback(com.google.common.util.concurrent.ListenableFuture<V>, com.google.common.util.concurrent.FutureCallback<? super V>, java.util.concurrent.Executor)nativelyFuture.addCallback(BiConsumer<? super V, Throwable> callback) SupportFutures.addCallback(com.google.common.util.concurrent.ListenableFuture<V>, com.google.common.util.concurrent.FutureCallback<? super V>, java.util.concurrent.Executor)nativelyFuture.addCallback(BiConsumer<? super V, Throwable> callback, Executor executor) SupportFutures.addCallback(com.google.common.util.concurrent.ListenableFuture<V>, com.google.common.util.concurrent.FutureCallback<? super V>, java.util.concurrent.Executor)nativelyFuture.addCallback(Consumer<? super V> onSuccess, Consumer<? super Throwable> onFailure) SupportFutures.addCallback(com.google.common.util.concurrent.ListenableFuture<V>, com.google.common.util.concurrent.FutureCallback<? super V>, java.util.concurrent.Executor)nativelyFuture.addCallback(Consumer<? super V> onSuccess, Consumer<? super Throwable> onFailure, Executor executor) SupportFutures.addCallback(com.google.common.util.concurrent.ListenableFuture<V>, com.google.common.util.concurrent.FutureCallback<? super V>, java.util.concurrent.Executor)nativelyAbstractFuture.addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> listener) Add a listener to be invoked once this future completes.Future.addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> genericFutureListener) AbstractFuture.addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>>... listeners) Future.addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>>... genericFutureListeners) FutureCombiner.allOf(Collection<? extends io.netty.util.concurrent.Future<? extends V>> futures) Waits only until the first failure, or until all have succeeded.Future.await()Wait indefinitely for this future to complete, throwing any interruptSyncFuture.await()AbstractFuture.awaitThrowUncheckedOnInterrupt()Wait for this future to completeAwaitable.awaitThrowUncheckedOnInterrupt()Future.awaitThrowUncheckedOnInterrupt()Wait indefinitely for this promise to complete, throwing any interrupt as an UncheckedInterruptedExceptionAbstractFuture.awaitUninterruptibly()Wait for this future to completeAwaitable.awaitUninterruptibly()Future.awaitUninterruptibly()Wait indefinitely for this future to completeprotected <T> Future<T>AbstractFuture.flatMap(AbstractFuture<T> result, Function<? super V, ? extends Future<T>> flatMapper, Executor executor) SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively SeeAbstractFuture.addListener(GenericFutureListener)for ordering semantics.<T> Future<T>SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively SeeAbstractFuture.addListener(GenericFutureListener)for ordering semantics.default <T> Future<T>SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively<T> Future<T>SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively<T> Future<T>SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively SeeAbstractFuture.addListener(GenericFutureListener)for ordering semantics.<T> Future<T>SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively SeeAbstractFuture.addListener(GenericFutureListener)for ordering semantics.protected <T> Future<T>AbstractFuture.map(AbstractFuture<T> result, Function<? super V, ? extends T> mapper, Executor executor) SupportFutures.transform(ListenableFuture, com.google.common.base.Function, Executor)natively SeeAbstractFuture.addListener(GenericFutureListener)for ordering semantics.<T> Future<T>SupportFutures.transform(com.google.common.util.concurrent.ListenableFuture<I>, com.google.common.base.Function<? super I, ? extends O>, java.util.concurrent.Executor)natively SeeAbstractFuture.addListener(GenericFutureListener)for ordering semantics.default <T> Future<T>SupportFutures.transform(ListenableFuture, com.google.common.base.Function, Executor)natively<T> Future<T>SupportFutures.transform(ListenableFuture, com.google.common.base.Function, Executor)natively<T> Future<T>SupportFutures.transform(com.google.common.util.concurrent.ListenableFuture<I>, com.google.common.base.Function<? super I, ? extends O>, java.util.concurrent.Executor)natively SeeAbstractFuture.addListener(GenericFutureListener)for ordering semantics.AbstractFuture.removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> listener) Future.removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> genericFutureListener) AbstractFuture.removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>>... listeners) Future.removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>>... genericFutureListeners) FutureCombiner.successfulOf(List<? extends io.netty.util.concurrent.Future<V>> futures) Waits for all futures to complete, returning a list containing values of all successful input futures.Future.sync()waits for completion; in case of failure rethrows the original exception without a new wrapping exception so may cause problems for reporting stack tracesFuture.syncThrowUncheckedOnInterrupt()waits for completion; in case of failure rethrows the original exception without a new wrapping exception so may cause problems for reporting stack tracesFuture.syncUninterruptibly()waits for completion; in case of failure rethrows the original exception without a new wrapping exception so may cause problems for reporting stack tracesMethods in org.apache.cassandra.utils.concurrent that return types with arguments of type FutureModifier and TypeMethodDescriptionstatic <V> io.netty.util.concurrent.GenericFutureListener<? extends Future<V>>Promise.listener(com.google.common.util.concurrent.FutureCallback<V> callback) static <V> io.netty.util.concurrent.GenericFutureListener<? extends Future<V>>Promise.listener(ExecutorService executor, com.google.common.util.concurrent.FutureCallback<V> callback) Method parameters in org.apache.cassandra.utils.concurrent with type arguments of type FutureModifier and TypeMethodDescriptionprotected <T> Future<T>AbstractFuture.flatMap(AbstractFuture<T> result, Function<? super V, ? extends Future<T>> flatMapper, Executor executor) SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively SeeAbstractFuture.addListener(GenericFutureListener)for ordering semantics.<T> Future<T>SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively SeeAbstractFuture.addListener(GenericFutureListener)for ordering semantics.default <T> Future<T>SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively<T> Future<T>SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively<T> Future<T>SupportFutures.transformAsync(ListenableFuture, AsyncFunction, Executor)natively SeeAbstractFuture.addListener(GenericFutureListener)for ordering semantics. -
Uses of Future in org.apache.cassandra.utils.memory
Methods in org.apache.cassandra.utils.memory that return Future