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>, java.lang.Comparable<java.util.concurrent.Delayed>, java.lang.Runnable, java.util.concurrent.Delayed, java.util.concurrent.Future<V>, java.util.concurrent.RunnableFuture<V>, java.util.concurrent.RunnableScheduledFuture<V>, java.util.concurrent.ScheduledFuture<V>
- Enclosing class:
UnorderedThreadPoolEventExecutor
private static final class UnorderedThreadPoolEventExecutor.RunnableScheduledFutureTask<V>
extends PromiseTask<V>
implements java.util.concurrent.RunnableScheduledFuture<V>, ScheduledFuture<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final java.util.concurrent.RunnableScheduledFuture<V> private final booleanFields inherited from class DefaultPromise
PROPERTY_MAX_LISTENER_STACK_DEPTH -
Constructor Summary
ConstructorsConstructorDescriptionRunnableScheduledFutureTask(EventExecutor executor, java.util.concurrent.RunnableScheduledFuture<V> future, boolean wasCallable) -
Method Summary
Methods inherited from class PromiseTask
cancel, equals, hashCode, setFailure, setFailureInternal, setSuccess, setSuccessInternal, setUncancellable, setUncancellableInternal, toStringBuilder, tryFailure, tryFailureInternal, trySuccess, trySuccessInternalMethods inherited from class 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 Future
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccessMethods inherited from interface java.util.concurrent.Future
get, get, isCancelled, isDone
-
Field Details
-
future
-
wasCallable
private final boolean wasCallable
-
-
Constructor Details
-
RunnableScheduledFutureTask
RunnableScheduledFutureTask(EventExecutor executor, java.util.concurrent.RunnableScheduledFuture<V> future, boolean wasCallable)
-
-
Method Details
-
runTask
- Overrides:
runTaskin classPromiseTask<V>- Throws:
java.lang.Throwable
-
run
public void run()- Specified by:
runin interfacejava.lang.Runnable- Specified by:
runin interfacejava.util.concurrent.RunnableFuture<V>- Overrides:
runin classPromiseTask<V>
-
isPeriodic
public boolean isPeriodic()- Specified by:
isPeriodicin interfacejava.util.concurrent.RunnableScheduledFuture<V>
-
getDelay
public long getDelay(java.util.concurrent.TimeUnit unit) - Specified by:
getDelayin interfacejava.util.concurrent.Delayed
-
compareTo
public int compareTo(java.util.concurrent.Delayed o) - Specified by:
compareToin interfacejava.lang.Comparable<V>
-