Package org.redisson.executor
Class RemotePromise<T>
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<T>
-
- org.redisson.executor.RemotePromise<T>
-
- All Implemented Interfaces:
CompletionStage<T>
,Future<T>
public class RemotePromise<T> extends CompletableFuture<T>
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask
-
-
Constructor Summary
Constructors Constructor Description RemotePromise(RequestId requestId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Boolean>
cancelAsync(boolean mayInterruptIfRunning)
void
doCancel(boolean mayInterruptIfRunning)
CompletableFuture<Boolean>
getAddFuture()
RequestId
getRequestId()
void
setAddFuture(CompletableFuture<Boolean> addFuture)
-
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, 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, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
-
-
-
-
Constructor Detail
-
RemotePromise
public RemotePromise(RequestId requestId)
-
-
Method Detail
-
getRequestId
public RequestId getRequestId()
-
setAddFuture
public void setAddFuture(CompletableFuture<Boolean> addFuture)
-
getAddFuture
public CompletableFuture<Boolean> getAddFuture()
-
doCancel
public void doCancel(boolean mayInterruptIfRunning)
-
cancelAsync
public CompletableFuture<Boolean> cancelAsync(boolean mayInterruptIfRunning)
-
-