Skip to content

EventLoopGroup vs EventExecutorGroup

In the Netty framework architecture, the relationship between EventLoopGroup and EventExecutorGroup is defined by direct inheritance and specialization.^[600-developer-big-data-netty-netty-eventloopgroup.md]

Core Relationship

The EventLoopGroup interface is a specialized extension of the EventExecutorGroup interface, meaning that every EventLoopGroup is technically an EventExecutorGroup, but with specific features tailored for I/O operations.^[600-developer-big-data-netty-netty-eventloopgroup.md]

Class Hierarchy

This inheritance is reflected in the implementation hierarchy, where classes defining the "Loop" functionality extend their corresponding generic "Executor" parent classes.^[600-developer-big-data-netty-netty-eventloopgroup.md]

  • MultithreadEventLoopGroup extends MultithreadEventExecutorGroup^[600-developer-big-data-netty-netty-eventloopgroup.md]
  • NioEventLoopGroup is a standard implementation of the MultithreadEventLoopGroup^[600-developer-big-data-netty-netty-eventloopgroup.md]

Sources

^[600-developer-big-data-netty-netty-eventloopgroup.md]