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
FieldsFields inherited from class io.netty.util.concurrent.DefaultPromise
PROPERTY_MAX_LISTENER_STACK_DEPTH -
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, trySuccessInternalMethods 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.util.concurrent.Future
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccessMethods 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:
runTaskin classPromiseTask<V>- Throws:
Throwable
-
run
public void run()- Specified by:
runin interfaceRunnable- Specified by:
runin interfaceRunnableFuture<V>- Overrides:
runin classPromiseTask<V>
-
isPeriodic
public boolean isPeriodic()- Specified by:
isPeriodicin interfaceRunnableScheduledFuture<V>
-
getDelay
-
compareTo
- Specified by:
compareToin interfaceComparable<V>
-