Interface EventLoop
- All Superinterfaces:
EventExecutor, EventExecutorGroup, EventLoopGroup, Executor, ExecutorService, Iterable<EventExecutor>, OrderedEventExecutor, ScheduledExecutorService
- All Known Implementing Classes:
AbstractEventLoop, DefaultEventLoop, EpollEventLoop, NioEventLoop, SingleThreadEventLoop, ThreadPerChannelEventLoop
-
Method Summary
Modifier and TypeMethodDescriptionparent()Return theEventExecutorGroupwhich is the parent of thisEventExecutor,Methods inherited from interface EventExecutor
inEventLoop, inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, nextModifier and TypeMethodDescriptionbooleanCallsEventExecutor.inEventLoop(Thread)withThread.currentThread()as argumentbooleaninEventLoop(Thread thread) <V> Future<V> newFailedFuture(Throwable cause) Create a newFuturewhich is marked as failed already.<V> ProgressivePromise<V> Create a newProgressivePromise.<V> Promise<V> Return a newPromise.<V> Future<V> newSucceededFuture(V result) Create a newFuturewhich is marked as succeeded already.next()Returns a reference to itself.Methods inherited from interface EventExecutorGroup
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureModifier and TypeMethodDescriptionbooleanReturnstrueif and only if allEventExecutors managed by thisEventExecutorGroupare being shut down gracefully or was shut down.iterator()<V> ScheduledFuture<V> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) voidshutdown()Deprecated.Future<?> Shortcut method forEventExecutorGroup.shutdownGracefully(long, long, TimeUnit)with sensible default values.Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit) Signals this executor that the caller wants the executor to be shut down.Deprecated.Future<?> <T> Future<T> <T> Future<T> Future<?> Returns theFuturewhich is notified when allEventExecutors managed by thisEventExecutorGrouphave been terminated.Methods inherited from interface EventLoopGroup
next, register, register, registerModifier and TypeMethodDescriptionnext()Return the nextEventLoopto useregister(ChannelPromise promise) register(Channel channel, ChannelPromise promise) Deprecated.UseEventLoopGroup.register(ChannelPromise)instead.Methods inherited from interface ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
parent
EventLoopGroup parent()Description copied from interface:EventExecutorReturn theEventExecutorGroupwhich is the parent of thisEventExecutor,- Specified by:
parentin interfaceEventExecutor
-
EventExecutorGroup.shutdownGracefully(long, long, TimeUnit)orEventExecutorGroup.shutdownGracefully()instead.