Uses of Interface
org.apache.cassandra.utils.concurrent.Promise
Packages that use Promise
-
Uses of Promise in org.apache.cassandra.net
Classes in org.apache.cassandra.net that implement PromiseModifier 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 Promise in org.apache.cassandra.utils.concurrent
Classes in org.apache.cassandra.utils.concurrent that implement PromiseModifier and TypeClassDescriptionclassAsyncPromise<V>ExtendsAsyncFutureto implement thePromiseinterface.static classclassSyncPromise<V>ExtendsSyncFutureto implement thePromiseinterface.static classMethods in org.apache.cassandra.utils.concurrent that return PromiseModifier and TypeMethodDescriptionPromise.addCallback(com.google.common.util.concurrent.FutureCallback<? super V> callback) Promise.addCallback(com.google.common.util.concurrent.FutureCallback<? super V> callback, Executor executor) Promise.addCallback(Consumer<? super V> onSuccess, Consumer<? super Throwable> onFailure) Promise.addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> var1) Promise.addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>>... var1) Promise.await()Wait indefinitely for this promise to complete, throwing any interruptPromise.awaitThrowUncheckedOnInterrupt()Wait indefinitely for this promise to complete, throwing any interrupt as an UncheckedInterruptedExceptionPromise.awaitUninterruptibly()Wait indefinitely for this promise to completePromise.removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>> var1) Promise.removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super V>>... var1) AsyncPromise.setFailure(Throwable throwable) Complete the promise abnormally if not already completePromise.setFailure(Throwable throwable) Complete the promise abnormally if not already completeSyncPromise.setFailure(Throwable throwable) Complete the promise abnormally if not already completeAsyncPromise.setSuccess(V v) Complete the promise successfully if not already completePromise.setSuccess(V v) Complete the promise successfully if not already completeSyncPromise.setSuccess(V v) Complete the promise successfully if not already completeAsyncPromise.sync()waits for completion; in case of failure rethrows the original exception without a new wrapping exception so may cause problems for reporting stack tracesPromise.sync()waits for completion; in case of failure rethrows the original exception without a new wrapping exception so may cause problems for reporting stack tracesSyncPromise.sync()waits for completion; in case of failure rethrows the original exception without a new wrapping exception so may cause problems for reporting stack tracesAsyncPromise.syncUninterruptibly()waits for completion; in case of failure rethrows the original exception without a new wrapping exception so may cause problems for reporting stack tracesPromise.syncUninterruptibly()waits for completion; in case of failure rethrows the original exception without a new wrapping exception so may cause problems for reporting stack tracesSyncPromise.syncUninterruptibly()waits for completion; in case of failure rethrows the original exception without a new wrapping exception so may cause problems for reporting stack traces