Package org.redisson.executor
Class RedissonScheduledFuture<V>
java.lang.Object
org.redisson.misc.CompletableFutureWrapper<V>
org.redisson.executor.RedissonScheduledFuture<V>
- Type Parameters:
V- value type
- All Implemented Interfaces:
Comparable<Delayed>,CompletionStage<V>,Delayed,Future<V>,ScheduledFuture<V>,RExecutorFuture<V>,RFuture<V>,RScheduledFuture<V>
public class RedissonScheduledFuture<V>
extends CompletableFutureWrapper<V>
implements RScheduledFuture<V>
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionRedissonScheduledFuture(RemotePromise<V> promise, long scheduledExecutionTime) -
Method Summary
Modifier and TypeMethodDescriptionintlongReturns scheduled task's id.Methods inherited from class org.redisson.misc.CompletableFutureWrapper
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, complete, exceptionally, get, get, getNow, getNow, handle, handleAsync, handleAsync, isCancelled, isDone, isSuccess, join, onComplete, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, sync, syncUninterruptibly, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, whenCompleteAsyncMethods inherited from interface org.redisson.api.RFuture
await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cause, getNow, isSuccess, join, onComplete, sync, syncUninterruptibly
-
Constructor Details
-
RedissonScheduledFuture
-
-
Method Details
-
getInnerPromise
-
compareTo
- Specified by:
compareToin interfaceComparable<V>
-
getDelay
-
getTaskId
Description copied from interface:RExecutorFutureReturns scheduled task's id. This id could be used for task cancellation.- Specified by:
getTaskIdin interfaceRExecutorFuture<V>- Returns:
- task id
- See Also:
-