Package org.redisson.command
Class BatchPromise<T>
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<T>
-
- org.redisson.misc.RedissonPromise<T>
-
- org.redisson.command.BatchPromise<T>
-
- All Implemented Interfaces:
CompletionStage<T>,Future<T>,RFuture<T>,RPromise<T>
public class BatchPromise<T> extends RedissonPromise<T>
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask
-
-
Constructor Summary
Constructors Constructor Description BatchPromise(AtomicBoolean executed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)RFuture<Void>getSentPromise()RPromise<T>sync()Waits for this future until it is done, and rethrows the cause of the failure if this future failed.RPromise<T>syncUninterruptibly()Waits for this future until it is done, and rethrows the cause of the failure if this future failed.-
Methods inherited from class org.redisson.misc.RedissonPromise
await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cause, getNow, hasListeners, isCancelled, isDone, isSuccess, newFailedFuture, newSucceededFuture, onComplete, setUncancellable, toString, tryFailure, trySuccess
-
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCompletedExceptionally, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.CompletionStage
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsync
-
-
-
-
Constructor Detail
-
BatchPromise
public BatchPromise(AtomicBoolean executed)
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
sync
public RPromise<T> sync() throws InterruptedException
Description copied from interface:RFutureWaits for this future until it is done, and rethrows the cause of the failure if this future failed.- Specified by:
syncin interfaceRFuture<T>- Specified by:
syncin interfaceRPromise<T>- Overrides:
syncin classRedissonPromise<T>- Returns:
- Future object
- Throws:
InterruptedException- if the current thread was interrupted
-
syncUninterruptibly
public RPromise<T> syncUninterruptibly()
Description copied from interface:RFutureWaits for this future until it is done, and rethrows the cause of the failure if this future failed.- Specified by:
syncUninterruptiblyin interfaceRFuture<T>- Specified by:
syncUninterruptiblyin interfaceRPromise<T>- Overrides:
syncUninterruptiblyin classRedissonPromise<T>- Returns:
- Future object
-
-