Home / Class/ KQueueEventLoopGroup Class — netty Architecture

KQueueEventLoopGroup Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  46d8945b_201d_b259_f424_acbc4a2b7ef3["KQueueEventLoopGroup"]
  be9444ae_1f03_372f_8cae_db52530c7423["KQueueEventLoopGroup.java"]
  46d8945b_201d_b259_f424_acbc4a2b7ef3 -->|defined in| be9444ae_1f03_372f_8cae_db52530c7423
  b7bddc93_61e3_42e8_3f2e_5048507a3c3f["KQueueEventLoopGroup()"]
  46d8945b_201d_b259_f424_acbc4a2b7ef3 -->|method| b7bddc93_61e3_42e8_3f2e_5048507a3c3f
  04418235_c958_ddcc_7744_04b563240e87["setIoRatio()"]
  46d8945b_201d_b259_f424_acbc4a2b7ef3 -->|method| 04418235_c958_ddcc_7744_04b563240e87
  fa452b57_5882_5d94_4116_dfe79a591e04["IoEventLoop()"]
  46d8945b_201d_b259_f424_acbc4a2b7ef3 -->|method| fa452b57_5882_5d94_4116_dfe79a591e04

Relationship Graph

Source Code

transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueEventLoopGroup.java lines 44–238

@Deprecated
public final class KQueueEventLoopGroup extends MultiThreadIoEventLoopGroup {

    // This does not use static by design to ensure the class can be loaded and only do the check when its actually
    // instanced.
    {
        // Ensure JNI is initialized by the time this class is loaded by this time!
        KQueue.ensureAvailability();
    }

    private static final InternalLogger LOGGER = InternalLoggerFactory.getInstance(KQueueEventLoopGroup.class);

    /**
     * Create a new instance using the default number of threads and the default {@link ThreadFactory}.
     */
    public KQueueEventLoopGroup() {
        this(0);
    }

    /**
     * Create a new instance using the specified number of threads and the default {@link ThreadFactory}.
     */
    public KQueueEventLoopGroup(int nThreads) {
        this(nThreads, (ThreadFactory) null);
    }

    /**
     * Create a new instance using the default number of threads and the given {@link ThreadFactory}.
     */
    @SuppressWarnings("deprecation")
    public KQueueEventLoopGroup(ThreadFactory threadFactory) {
        this(0, threadFactory, 0);
    }

    /**
     * Create a new instance using the specified number of threads and the default {@link ThreadFactory}.
     */
    @SuppressWarnings("deprecation")
    public KQueueEventLoopGroup(int nThreads, SelectStrategyFactory selectStrategyFactory) {
        this(nThreads, (ThreadFactory) null, selectStrategyFactory);
    }

    /**
     * Create a new instance using the specified number of threads and the given {@link ThreadFactory}.
     */
    @SuppressWarnings("deprecation")
    public KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory) {
        this(nThreads, threadFactory, 0);
    }

    public KQueueEventLoopGroup(int nThreads, Executor executor) {
        this(nThreads, executor, DefaultSelectStrategyFactory.INSTANCE);
    }

    /**
     * Create a new instance using the specified number of threads and the given {@link ThreadFactory}.
     */
    @SuppressWarnings("deprecation")
    public KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory,
                                SelectStrategyFactory selectStrategyFactory) {
        this(nThreads, threadFactory, 0, selectStrategyFactory);
    }

    /**
     * Create a new instance using the specified number of threads, the given {@link ThreadFactory} and the given
     * maximal amount of epoll events to handle per epollWait(...).
     *
     * @deprecated  Use {@link #KQueueEventLoopGroup(int)} or {@link #KQueueEventLoopGroup(int, ThreadFactory)}
     */
    @Deprecated
    public KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce) {
        this(nThreads, threadFactory, maxEventsAtOnce, DefaultSelectStrategyFactory.INSTANCE);
    }

    /**
     * Create a new instance using the specified number of threads, the given {@link ThreadFactory} and the given
     * maximal amount of epoll events to handle per epollWait(...).
     *
     * @deprecated  Use {@link #KQueueEventLoopGroup(int)}, {@link #KQueueEventLoopGroup(int, ThreadFactory)}, or
     * {@link #KQueueEventLoopGroup(int, SelectStrategyFactory)}
     */

Frequently Asked Questions

What is the KQueueEventLoopGroup class?
KQueueEventLoopGroup is a class in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueEventLoopGroup.java.
Where is KQueueEventLoopGroup defined?
KQueueEventLoopGroup is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueEventLoopGroup.java at line 44.

Analyze Your Own Codebase

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

Try Supermodel Free