Home / Function/ testOptions() — netty Function Reference

testOptions() — netty Function Reference

Architecture documentation for the testOptions() function in IoUringIoHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b756075c_219c_bc48_58e8_5aaf6f5d2bd5["testOptions()"]
  a5c22e87_b6d0_cf88_f1c4_d3668b78fb7d["IoUringIoHandlerTest"]
  b756075c_219c_bc48_58e8_5aaf6f5d2bd5 -->|defined in| a5c22e87_b6d0_cf88_f1c4_d3668b78fb7d
  style b756075c_219c_bc48_58e8_5aaf6f5d2bd5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringIoHandlerTest.java lines 41–63

    @Test
    public void testOptions() {
        IoUringIoHandlerConfig config = new IoUringIoHandlerConfig();
        config.setMaxBoundedWorker(2)
                .setMaxUnboundedWorker(2)
                .setRingSize(4);
        IoHandlerFactory ioHandlerFactory = IoUringIoHandler.newFactory(config);
        IoHandler handler = ioHandlerFactory.newHandler(new ThreadAwareExecutor() {

            @Override
            public boolean isExecutorThread(Thread thread) {
                return false;
            }

            @Override
            public void execute(Runnable command) {
                command.run();
            }
        });
        handler.initialize();
        handler.prepareToDestroy();
        handler.destroy();
    }

Domain

Subdomains

Frequently Asked Questions

What does testOptions() do?
testOptions() is a function in the netty codebase, defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringIoHandlerTest.java.
Where is testOptions() defined?
testOptions() is defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringIoHandlerTest.java at line 41.

Analyze Your Own Codebase

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

Try Supermodel Free