Interface EventLoopGroup

  • All Superinterfaces:
    io.netty5.util.concurrent.EventExecutorGroup, Executor, Iterable<io.netty5.util.concurrent.EventExecutor>
    All Known Subinterfaces:
    EventLoop
    All Known Implementing Classes:
    MultithreadEventLoopGroup, SingleThreadEventLoop

    public interface EventLoopGroup
    extends io.netty5.util.concurrent.EventExecutorGroup
    Special EventExecutorGroup which allows registering IoHandles 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 boolean isCompatible​(Class<? extends IoHandle> handleType)
      Returns true if the given type is compatible with this EventLoopGroup and so can be registered to the contained EventLoops, false otherwise.
      EventLoop next()
      Return the next EventLoop to 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
    • Method Detail

      • next

        EventLoop next()
        Return the next EventLoop to use
        Specified by:
        next in interface io.netty5.util.concurrent.EventExecutorGroup
      • isCompatible

        default boolean isCompatible​(Class<? extends IoHandle> handleType)
        Returns true if the given type is compatible with this EventLoopGroup and so can be registered to the contained EventLoops, false otherwise.
        Parameters:
        handleType - the type of the IoHandle.
        Returns:
        if compatible of not.