Interface IoEventLoop
- All Superinterfaces:
EventExecutor, EventExecutorGroup, EventLoop, EventLoopGroup, Executor, ExecutorService, IoEventLoopGroup, Iterable<EventExecutor>, OrderedEventExecutor, ScheduledExecutorService, ThreadAwareExecutor
- All Known Implementing Classes:
EpollEventLoop, ManualIoEventLoop, NioEventLoop, SingleThreadIoEventLoop
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisCompatible(Class<? extends IoHandle> handleType) Returnstrueif the given type is compatible with thisIoEventLoopGroupand so can be registered to the containedIoEventLoops,falseotherwise.booleandefault IoEventLoopnext()Returns one of theEventExecutors managed by thisEventExecutorGroup.Methods inherited from interface EventExecutor
inEventLoop, inEventLoop, isExecutorThread, isSuspended, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, trySuspendModifier and TypeMethodDescriptiondefault booleanCallsEventExecutor.inEventLoop(Thread)withThread.currentThread()as argumentbooleaninEventLoop(Thread thread) default booleanisExecutorThread(Thread thread) default booleanReturnstrueif theEventExecutoris considered suspended.default <V> Future<V> newFailedFuture(Throwable cause) Create a newFuturewhich is marked as failed already.default <V> ProgressivePromise<V> Create a newProgressivePromise.default <V> Promise<V> Return a newPromise.default <V> Future<V> newSucceededFuture(V result) Create a newFuturewhich is marked as succeeded already.default booleanTry to suspend thisEventExecutorand returntrueif suspension was successful.Methods inherited from interface EventExecutorGroup
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture, tickerModifier 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.default Tickerticker()The ticker for this executor.Methods inherited from interface EventLoop
parentModifier and TypeMethodDescriptionparent()Return theEventExecutorGroupwhich is the parent of thisEventExecutor,Methods inherited from interface EventLoopGroup
registerModifier and TypeMethodDescriptionregister(Channel channel, ChannelPromise promise) Deprecated.UseEventLoopGroup.register(ChannelPromise)instead.Methods inherited from interface ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedMethods inherited from interface IoEventLoopGroup
register, registerModifier and TypeMethodDescriptiondefault ChannelFutureDeprecated.default ChannelFutureregister(ChannelPromise promise) Deprecated.Methods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
next
Description copied from interface:EventExecutorGroupReturns one of theEventExecutors managed by thisEventExecutorGroup.- Specified by:
nextin interfaceEventExecutorGroup- Specified by:
nextin interfaceEventLoopGroup- Specified by:
nextin interfaceIoEventLoopGroup
-
register
- Specified by:
registerin interfaceIoEventLoopGroup- Parameters:
handle- theIoHandleto register.- Returns:
- the
Futurethat is notified once the operations completes.
-
isCompatible
Description copied from interface:IoEventLoopGroupReturnstrueif the given type is compatible with thisIoEventLoopGroupand so can be registered to the containedIoEventLoops,falseotherwise.- Specified by:
isCompatiblein interfaceIoEventLoopGroup- Parameters:
handleType- the type of theIoHandle.- Returns:
- if compatible of not.
-
isIoType
Description copied from interface:IoEventLoopGroup- Specified by:
isIoTypein interfaceIoEventLoopGroup- Parameters:
handlerType- the type of theIoHandler.- Returns:
- if used or not.
-
EventExecutorGroup.shutdownGracefully(long, long, TimeUnit)orEventExecutorGroup.shutdownGracefully()instead.