Uses of Class
org.apache.cassandra.utils.concurrent.AsyncPromise
Packages that use AsyncPromise
-
Uses of AsyncPromise in org.apache.cassandra.net
Subclasses of AsyncPromise in org.apache.cassandra.netModifier 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 AsyncPromise in org.apache.cassandra.utils.concurrent
Subclasses of AsyncPromise in org.apache.cassandra.utils.concurrentMethods in org.apache.cassandra.utils.concurrent that return AsyncPromiseModifier and TypeMethodDescriptionAsyncPromise.addCallback(com.google.common.util.concurrent.FutureCallback<? super V> callback) AsyncPromise.addCallback(com.google.common.util.concurrent.FutureCallback<? super V> callback, Executor executor) AsyncPromise.addCallback(Consumer<? super V> onSuccess, Consumer<? super Throwable> onFailure) AsyncPromise.addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> listener) AsyncPromise.addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>>... listeners) AsyncPromise.await()Wait for this promise to completeAsyncPromise.awaitThrowUncheckedOnInterrupt()Wait for this promise to complete, throwing any interrupt as an UncheckedInterruptedExceptionAsyncPromise.awaitUninterruptibly()Wait uninterruptibly for this promise to completeAsyncPromise.removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> listener) AsyncPromise.removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>>... listeners) static <V> AsyncPromise<V>AsyncPromise.uncancellable()static <V> AsyncPromise<V>AsyncPromise.uncancellable(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> listener) static <V> AsyncPromise<V>AsyncPromise.uncancellable(Executor executor) static <V> AsyncPromise<V>AsyncPromise.withExecutor(Executor executor)