Home / Class/ OioEventLoopGroup Class — netty Architecture

OioEventLoopGroup Class — netty Architecture

Architecture documentation for the OioEventLoopGroup class in OioEventLoopGroup.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5b794a95_6609_aee8_bb03_93b2e1ed5780["OioEventLoopGroup"]
  38aafc90_19e7_d8ac_6014_2447e20953d1["OioEventLoopGroup.java"]
  5b794a95_6609_aee8_bb03_93b2e1ed5780 -->|defined in| 38aafc90_19e7_d8ac_6014_2447e20953d1
  ffcc8277_9103_d720_b5e1_a1287c239cdf["OioEventLoopGroup()"]
  5b794a95_6609_aee8_bb03_93b2e1ed5780 -->|method| ffcc8277_9103_d720_b5e1_a1287c239cdf

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/oio/OioEventLoopGroup.java lines 35–87

@Deprecated
public class OioEventLoopGroup extends ThreadPerChannelEventLoopGroup {

    /**
     * Create a new {@link OioEventLoopGroup} with no limit in place.
     */
    public OioEventLoopGroup() {
        this(0);
    }

    /**
     * Create a new {@link OioEventLoopGroup}.
     *
     * @param maxChannels       the maximum number of channels to handle with this instance. Once you try to register
     *                          a new {@link Channel} and the maximum is exceed it will throw an
     *                          {@link ChannelException} on the {@link #register(Channel)} and
     *                          {@link #register(ChannelPromise)} method.
     *                          Use {@code 0} to use no limit
     */
    public OioEventLoopGroup(int maxChannels) {
        this(maxChannels, (ThreadFactory) null);
    }

    /**
     * Create a new {@link OioEventLoopGroup}.
     *
     * @param maxChannels       the maximum number of channels to handle with this instance. Once you try to register
     *                          a new {@link Channel} and the maximum is exceed it will throw an
     *                          {@link ChannelException} on the {@link #register(Channel)} and
     *                          {@link #register(ChannelPromise)} method.
     *                          Use {@code 0} to use no limit
     * @param executor     the {@link Executor} used to create new {@link Thread} instances that handle the
     *                          registered {@link Channel}s
     */
    public OioEventLoopGroup(int maxChannels, Executor executor) {
        super(maxChannels, executor);
    }

    /**
     * Create a new {@link OioEventLoopGroup}.
     *
     * @param maxChannels       the maximum number of channels to handle with this instance. Once you try to register
     *                          a new {@link Channel} and the maximum is exceed it will throw an
     *                          {@link ChannelException} on the {@link #register(Channel)} and
     *                          {@link #register(ChannelPromise)} method.
     *                          Use {@code 0} to use no limit
     * @param threadFactory     the {@link ThreadFactory} used to create new {@link Thread} instances that handle the
     *                          registered {@link Channel}s
     */
    public OioEventLoopGroup(int maxChannels, ThreadFactory threadFactory) {
        super(maxChannels, threadFactory);
    }
}

Frequently Asked Questions

What is the OioEventLoopGroup class?
OioEventLoopGroup is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/oio/OioEventLoopGroup.java.
Where is OioEventLoopGroup defined?
OioEventLoopGroup is defined in transport/src/main/java/io/netty/channel/oio/OioEventLoopGroup.java at line 35.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free