Package org.redisson.executor
Class RedissonExecutorFuture<V>
- java.lang.Object
-
- org.redisson.misc.PromiseDelegator<V>
-
- org.redisson.executor.RedissonExecutorFuture<V>
-
- Type Parameters:
V
- value type
- All Implemented Interfaces:
CompletionStage<V>
,Future<V>
,RExecutorFuture<V>
,RFuture<V>
,RPromise<V>
public class RedissonExecutorFuture<V> extends PromiseDelegator<V> implements RExecutorFuture<V>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonExecutorFuture(RemotePromise<V> promise)
RedissonExecutorFuture(RPromise<V> promise, RequestId taskId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTaskId()
Returns scheduled task's id.-
Methods inherited from class org.redisson.misc.PromiseDelegator
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, exceptionally, get, get, getInnerPromise, getNow, handle, handleAsync, handleAsync, hasListeners, isCancelled, isDone, isSuccess, join, onComplete, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, setUncancellable, sync, syncUninterruptibly, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, tryFailure, trySuccess, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
-
Methods inherited from interface org.redisson.api.RFuture
await, await, awaitUninterruptibly, awaitUninterruptibly, cause, getNow, isSuccess, join, onComplete
-
-
-
-
Constructor Detail
-
RedissonExecutorFuture
public RedissonExecutorFuture(RemotePromise<V> promise)
-
-
Method Detail
-
getTaskId
public String getTaskId()
Description copied from interface:RExecutorFuture
Returns scheduled task's id. This id could be used for task cancellation.- Specified by:
getTaskId
in interfaceRExecutorFuture<V>
- Returns:
- task id
- See Also:
RExecutorService.cancelTask(String)
-
-