public interface EventExecutor extends EventExecutorGroup
EventExecutor is a special EventExecutorGroup which comes
with some handy methods to see if a Thread is executed in a event loop.
Beside this it also extends the EventExecutorGroup to allow a generic way to
access methods.| Modifier and Type | Method and Description |
|---|---|
<E extends EventExecutor> |
children()
Returns an unmodifiable singleton set which contains itself.
|
boolean |
inEventLoop()
Calls
inEventLoop(Thread) with Thread.currentThread() as argument |
boolean |
inEventLoop(Thread thread)
|
<V> Future<V> |
newFailedFuture(Throwable cause)
Create a new
Future which is marked as fakued already. |
<V> ProgressivePromise<V> |
newProgressivePromise()
Create a new
ProgressivePromise. |
<V> Promise<V> |
newPromise()
Return a new
Promise. |
<V> Future<V> |
newSucceededFuture(V result)
Create a new
Future which is marked as successes already. |
EventExecutor |
next()
Returns a reference to itself.
|
EventExecutorGroup |
parent()
Return the
EventExecutorGroup which is the parent of this EventExecutor, |
<V> ScheduledFuture<V> |
schedule(Callable<V> callable,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
<T> Future<T> |
submit(Callable<T> task) |
Future<?> |
submit(Runnable task) |
<T> Future<T> |
submit(Runnable task,
T result) |
isShuttingDown, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedEventExecutor next()
next in interface EventExecutorGroup<E extends EventExecutor> Set<E> children()
children in interface EventExecutorGroupEventExecutorGroup parent()
EventExecutorGroup which is the parent of this EventExecutor,boolean inEventLoop()
inEventLoop(Thread) with Thread.currentThread() as argumentboolean inEventLoop(Thread thread)
<V> ProgressivePromise<V> newProgressivePromise()
ProgressivePromise.<V> Future<V> newSucceededFuture(V result)
Future which is marked as successes already. So Future.isSuccess()
will return true. All FutureListener added to it will be notified directly. Also
every call of blocking methods will just return without blocking.<V> Future<V> newFailedFuture(Throwable cause)
Future which is marked as fakued already. So Future.isSuccess()
will return false. All FutureListener added to it will be notified directly. Also
every call of blocking methods will just return without blocking.Future<?> submit(Runnable task)
submit in interface EventExecutorGroupsubmit in interface ExecutorService<T> Future<T> submit(Runnable task, T result)
submit in interface EventExecutorGroupsubmit in interface ExecutorService<T> Future<T> submit(Callable<T> task)
submit in interface EventExecutorGroupsubmit in interface ExecutorServiceScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
schedule in interface EventExecutorGroupschedule in interface ScheduledExecutorService<V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
schedule in interface EventExecutorGroupschedule in interface ScheduledExecutorServiceScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleAtFixedRate in interface EventExecutorGroupscheduleAtFixedRate in interface ScheduledExecutorServiceScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
scheduleWithFixedDelay in interface EventExecutorGroupscheduleWithFixedDelay in interface ScheduledExecutorServiceCopyright © 2008–2013 The Netty Project. All rights reserved.