GeezerVison is showing netty.io — EventExecutor (Netty API Reference (4.1.141.Final))
Interface EventExecutor
- All Superinterfaces:
EventExecutorGroup, Executor, ExecutorService, Iterable<EventExecutor>, ScheduledExecutorService
- All Known Subinterfaces:
EventLoop, OrderedEventExecutor
- All Known Implementing Classes:
AbstractEventExecutor, AbstractEventLoop, AbstractScheduledEventExecutor, DefaultEventExecutor, DefaultEventLoop, EpollEventLoop, GlobalEventExecutor, ImmediateEventExecutor, NioEventLoop, SingleThreadEventExecutor, SingleThreadEventLoop, ThreadPerChannelEventLoop, UnorderedThreadPoolEventExecutor
-
Method Summary
Modifier and Type
Method
Description
boolean
boolean
Return true if the given Thread is executed in the event loop,
false otherwise.
Create a new Future which is marked as failed already.
Create a new Future which is marked as succeeded already.
Returns a reference to itself.
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture
Modifier and Type
Method
Description
boolean
void
Signals this executor that the caller wants the executor to be shut down.
-
Method Details
-
-
-
-
inEventLoop
boolean inEventLoop(Thread thread)
Return true if the given Thread is executed in the event loop,
false otherwise.
-
-
-
newSucceededFuture
<V> Future<V> newSucceededFuture(V result)
Create a new Future which is marked as succeeded 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.
-
newFailedFuture
Create a new Future which is marked as failed 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.
|