Package org.redisson.executor
Class RedissonScheduledFuture<V>
- java.lang.Object
-
- org.redisson.misc.PromiseDelegator<V>
-
- org.redisson.executor.RedissonScheduledFuture<V>
-
- Type Parameters:
V
- value type
- All Implemented Interfaces:
Comparable<Delayed>
,Delayed
,Future<V>
,ScheduledFuture<V>
,RExecutorFuture<V>
,RFuture<V>
,RScheduledFuture<V>
,RPromise<V>
public class RedissonScheduledFuture<V> extends PromiseDelegator<V> implements RScheduledFuture<V>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonScheduledFuture(RemotePromise<V> promise, long scheduledExecutionTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Delayed other)
long
getDelay(TimeUnit unit)
String
getTaskId()
Returns scheduled task's id.-
Methods inherited from class org.redisson.misc.PromiseDelegator
addListener, addListeners, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, get, get, getInnerPromise, getNow, hasListeners, isCancelled, isDone, isSuccess, removeListener, removeListeners, setUncancellable, sync, syncUninterruptibly, tryFailure, trySuccess
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.redisson.api.RFuture
await, await, awaitUninterruptibly, awaitUninterruptibly, cause, getNow, isSuccess
-
-
-
-
Constructor Detail
-
RedissonScheduledFuture
public RedissonScheduledFuture(RemotePromise<V> promise, long scheduledExecutionTime)
-
-
Method Detail
-
compareTo
public int compareTo(Delayed other)
- Specified by:
compareTo
in interfaceComparable<V>
-
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)
-
-