Home / File/ ManualEventLoopTest.java — netty Source File

ManualEventLoopTest.java — netty Source File

Architecture documentation for ManualEventLoopTest.java, a java file in the netty codebase.

Entity Profile

Relationship Graph

Source Code

/*
 * Copyright 2025 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.channel.epoll;

import io.netty.channel.IoEventLoop;
import io.netty.channel.IoEventLoopGroup;
import io.netty.channel.IoHandlerFactory;
import io.netty.channel.ManualIoEventLoop;
import io.netty.channel.MultiThreadIoEventLoopGroup;
import io.netty.util.concurrent.Future;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;

import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
import java.util.function.Consumer;

@Timeout(5)
public class ManualEventLoopTest {

    @Test
    void firstRacySubmissionMissWakeupEpoll() throws Exception {
        racySubmissionMissWakeup(EpollIoHandler.newFactory(), 1);
    }

    @Test
    void secondRacySubmissionMissWakeupEpoll() throws Exception {
        racySubmissionMissWakeup(EpollIoHandler.newFactory(), 2);
    }

    @Test
    void firstRacyOtherSubmissionMissWakeupEpoll() throws Exception {
        racyOtherSubmissionMissWakeup(EpollIoHandler.newFactory(), 1);
    }

    @Test
    void secondRacyOtherSubmissionMissWakeupEpoll() throws Exception {
        racyOtherSubmissionMissWakeup(EpollIoHandler.newFactory(), 2);
    }
// ... (165 more lines)

Domain

Subdomains

Frequently Asked Questions

What does ManualEventLoopTest.java do?
ManualEventLoopTest.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Telemetry subdomain.
Where is ManualEventLoopTest.java in the architecture?
ManualEventLoopTest.java is located at transport-native-epoll/src/test/java/io/netty/channel/epoll/ManualEventLoopTest.java (domain: Buffer, subdomain: Telemetry, directory: transport-native-epoll/src/test/java/io/netty/channel/epoll).

Analyze Your Own Codebase

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

Try Supermodel Free