Package io.netty.util.concurrent
Class UnorderedThreadPoolEventExecutor.RunnableScheduledFutureTask<V>
java.lang.Object
io.netty.util.concurrent.AbstractFuture<V>
io.netty.util.concurrent.DefaultPromise<V>
io.netty.util.concurrent.PromiseTask<V>
io.netty.util.concurrent.UnorderedThreadPoolEventExecutor.RunnableScheduledFutureTask<V>
- All Implemented Interfaces:
Future<V>
,Promise<V>
,ScheduledFuture<V>
,Comparable<Delayed>
,Runnable
,Delayed
,Future<V>
,RunnableFuture<V>
,RunnableScheduledFuture<V>
,ScheduledFuture<V>
- Enclosing class:
UnorderedThreadPoolEventExecutor
private static final class UnorderedThreadPoolEventExecutor.RunnableScheduledFutureTask<V>
extends PromiseTask<V>
implements RunnableScheduledFuture<V>, ScheduledFuture<V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRunnableScheduledFutureTask
(EventExecutor executor, RunnableScheduledFuture<V> future, boolean wasCallable) -
Method Summary
Methods inherited from class io.netty.util.concurrent.PromiseTask
cancel, equals, hashCode, setFailure, setFailureInternal, setSuccess, setSuccessInternal, setUncancellable, setUncancellableInternal, toStringBuilder, tryFailure, tryFailureInternal, trySuccess, trySuccessInternal
Methods inherited from class io.netty.util.concurrent.DefaultPromise
addListener, addListeners, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cause, checkDeadLock, executor, get, get, getNow, isCancellable, isCancelled, isDone, isSuccess, notifyListener, notifyProgressiveListeners, removeListener, removeListeners, sync, syncUninterruptibly, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.netty.util.concurrent.Future
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccess
Methods inherited from interface java.util.concurrent.Future
exceptionNow, get, get, isCancelled, isDone, resultNow, state
-
Field Details
-
future
-
wasCallable
private final boolean wasCallable
-
-
Constructor Details
-
RunnableScheduledFutureTask
RunnableScheduledFutureTask(EventExecutor executor, RunnableScheduledFuture<V> future, boolean wasCallable)
-
-
Method Details
-
runTask
- Overrides:
runTask
in classPromiseTask<V>
- Throws:
Throwable
-
run
public void run()- Specified by:
run
in interfaceRunnable
- Specified by:
run
in interfaceRunnableFuture<V>
- Overrides:
run
in classPromiseTask<V>
-
isPeriodic
public boolean isPeriodic()- Specified by:
isPeriodic
in interfaceRunnableScheduledFuture<V>
-
getDelay
-
compareTo
- Specified by:
compareTo
in interfaceComparable<V>
-