-
- All Superinterfaces:
EventExecutorGroup,Executor,Iterable<EventExecutor>
- All Known Subinterfaces:
EventLoop
- All Known Implementing Classes:
MultithreadEventLoopGroup,SingleThreadEventLoop
public interface EventLoopGroup extends EventExecutorGroup
SpecialEventExecutorGroupwhich allows registeringIoHandles that get processed for later selection during the event loop.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanisCompatible(Class<? extends IoHandle> handleType)Returnstrueif the given type is compatible with thisEventLoopGroupand so can be registered to the containedEventLoops,falseotherwise.EventLoopnext()Return the nextEventLoopto use-
Methods inherited from interface io.netty5.util.concurrent.EventExecutorGroup
awaitTermination, execute, isShutdown, isShuttingDown, isTerminated, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownGracefully, submit, submit, submit, terminationFuture
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
next
EventLoop next()
Return the nextEventLoopto use- Specified by:
nextin interfaceEventExecutorGroup
-
isCompatible
default boolean isCompatible(Class<? extends IoHandle> handleType)
Returnstrueif the given type is compatible with thisEventLoopGroupand so can be registered to the containedEventLoops,falseotherwise.- Parameters:
handleType- the type of theIoHandle.- Returns:
- if compatible of not.
-
-