Home / Function/ IoHandlerFactory() — netty Function Reference

IoHandlerFactory() — netty Function Reference

Architecture documentation for the IoHandlerFactory() function in HttpNativeServer.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8536a63d_2189_76eb_a356_d4a99e4d4b1e["IoHandlerFactory()"]
  3b94d628_ec03_4964_2e12_08b49e8b8b30["HttpNativeServer"]
  8536a63d_2189_76eb_a356_d4a99e4d4b1e -->|defined in| 3b94d628_ec03_4964_2e12_08b49e8b8b30
  style 8536a63d_2189_76eb_a356_d4a99e4d4b1e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite-native-image/src/main/java/io/netty/testsuite/svm/HttpNativeServer.java lines 114–137

    public static IoHandlerFactory chooseFactory(TransportType ioType) {
        if (ioType == TransportType.EPOLL) {
            return EpollIoHandler.newFactory();
        }

        if (ioType == TransportType.IO_URING) {
            IoUringIoHandlerConfig config = new IoUringIoHandlerConfig();
            if (IoUring.isRegisterBufferRingSupported()) {
                config.setBufferRingConfig(
                        IoUringBufferRingConfig.builder()
                                .bufferGroupId((short) 0)
                                .bufferRingSize((short) 16)
                                .batchSize(16)
                                .allocator(new IoUringFixedBufferRingAllocator(1024))
                                .batchAllocation(false)
                                .build()
                );
            }

           return IoUringIoHandler.newFactory(config);
        }

        return NioIoHandler.newFactory();
    }

Domain

Subdomains

Frequently Asked Questions

What does IoHandlerFactory() do?
IoHandlerFactory() is a function in the netty codebase, defined in testsuite-native-image/src/main/java/io/netty/testsuite/svm/HttpNativeServer.java.
Where is IoHandlerFactory() defined?
IoHandlerFactory() is defined in testsuite-native-image/src/main/java/io/netty/testsuite/svm/HttpNativeServer.java at line 114.

Analyze Your Own Codebase

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

Try Supermodel Free