PollRemoveTest Class — netty Architecture
Architecture documentation for the PollRemoveTest class in PollRemoveTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 97f9051d_0b4a_2085_3e9e_eb03d8e4b0b0["PollRemoveTest"] 267dad45_0daa_1b3d_c50c_1689c41bc209["PollRemoveTest.java"] 97f9051d_0b4a_2085_3e9e_eb03d8e4b0b0 -->|defined in| 267dad45_0daa_1b3d_c50c_1689c41bc209 e2c929db_9aa5_ea0e_bc55_7e9a4566a27d["loadJNI()"] 97f9051d_0b4a_2085_3e9e_eb03d8e4b0b0 -->|method| e2c929db_9aa5_ea0e_bc55_7e9a4566a27d 48dab5e8_a309_bea2_771a_866672d03caf["ioUringTest()"] 97f9051d_0b4a_2085_3e9e_eb03d8e4b0b0 -->|method| 48dab5e8_a309_bea2_771a_866672d03caf cc670b6c_5441_3e97_0ef8_740333d7d40c["test()"] 97f9051d_0b4a_2085_3e9e_eb03d8e4b0b0 -->|method| cc670b6c_5441_3e97_0ef8_740333d7d40c
Relationship Graph
Source Code
transport-native-io_uring/src/test/java/io/netty/channel/uring/PollRemoveTest.java lines 35–71
public class PollRemoveTest {
@BeforeAll
public static void loadJNI() {
assumeTrue(IoUring.isAvailable());
}
private static void ioUringTest() throws Exception {
Class<? extends ServerSocketChannel> clazz = IoUringServerSocketChannel.class;
final EventLoopGroup bossGroup = new MultiThreadIoEventLoopGroup(1, IoUringIoHandler.newFactory());
try {
ServerBootstrap b = new ServerBootstrap();
b.group(bossGroup)
.channel(clazz)
.handler(new LoggingHandler(LogLevel.TRACE))
.childHandler(new ChannelInitializer<SocketChannel>() {
@Override
public void initChannel(SocketChannel ch) { }
});
Channel sc = b.bind(new InetSocketAddress(0)).sync().channel();
// close ServerChannel
sc.close().sync();
} finally {
bossGroup.shutdownGracefully().sync();
}
}
@Test
@Timeout(10)
public void test() throws Exception {
ioUringTest();
ioUringTest();
}
}
Source
Frequently Asked Questions
What is the PollRemoveTest class?
PollRemoveTest is a class in the netty codebase, defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/PollRemoveTest.java.
Where is PollRemoveTest defined?
PollRemoveTest is defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/PollRemoveTest.java at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free