Interface IoEventLoopGroup
- All Superinterfaces:
EventExecutorGroup, EventLoopGroup, Executor, ExecutorService, Iterable<EventExecutor>, ScheduledExecutorService
- All Known Subinterfaces:
IoEventLoop
- All Known Implementing Classes:
EpollEventLoop, EpollEventLoopGroup, KQueueEventLoopGroup, LocalEventLoopGroup, ManualIoEventLoop, MultiThreadIoEventLoopGroup, NioEventLoop, NioEventLoopGroup, SingleThreadIoEventLoop
EventLoopGroup for IoEventLoops.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisCompatible(Class<? extends IoHandle> handleType) Returnstrueif the given type is compatible with thisIoEventLoopGroupand so can be registered to the containedIoEventLoops,falseotherwise.default booleannext()Return the nextEventLoopto usedefault ChannelFutureDeprecated.default ChannelFutureregister(ChannelPromise promise) Deprecated.default Future<IoRegistration> 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 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 Iterable
forEach, spliterator
-
Method Details
-
next
IoEventLoop next()Description copied from interface:EventLoopGroupReturn the nextEventLoopto use- Specified by:
nextin interfaceEventExecutorGroup- Specified by:
nextin interfaceEventLoopGroup
-
register
Deprecated.Description copied from interface:EventLoopGroupRegister aChannelwith thisEventLoop. The returnedChannelFuturewill get notified once the registration was complete.- Specified by:
registerin interfaceEventLoopGroup
-
register
Deprecated.Description copied from interface:EventLoopGroupRegister aChannelwith thisEventLoopusing aChannelFuture. The passedChannelFuturewill get notified once the registration was complete and also will get returned.- Specified by:
registerin interfaceEventLoopGroup
-
register
-
isCompatible
Returnstrueif the given type is compatible with thisIoEventLoopGroupand so can be registered to the containedIoEventLoops,falseotherwise.- Parameters:
handleType- the type of theIoHandle.- Returns:
- if compatible of not.
-
isIoType
- Parameters:
handlerType- the type of theIoHandler.- Returns:
- if used or not.
-
register(IoHandle)