Home / Function/ setup() — netty Function Reference

setup() — netty Function Reference

Architecture documentation for the setup() function in EpollSocketStringEchoBusyWaitTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  43b7087e_4422_cf60_6a3e_fd0b98d9770a["setup()"]
  cec5ab39_3b45_79d9_36d1_e0de33b63ea7["EpollSocketStringEchoBusyWaitTest"]
  43b7087e_4422_cf60_6a3e_fd0b98d9770a -->|defined in| cec5ab39_3b45_79d9_36d1_e0de33b63ea7
  style 43b7087e_4422_cf60_6a3e_fd0b98d9770a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketStringEchoBusyWaitTest.java lines 40–54

    @BeforeAll
    public static void setup() throws Exception {
        EPOLL_LOOP = new MultiThreadIoEventLoopGroup(2, new DefaultThreadFactory("testsuite-epoll-busy-wait", true),
                EpollIoHandler.newFactory(1024, new SelectStrategyFactory() {
                    @Override
                    public SelectStrategy newSelectStrategy() {
                        return new SelectStrategy() {
                            @Override
                            public int calculateStrategy(IntSupplier selectSupplier, boolean hasTasks) {
                                return SelectStrategy.BUSY_WAIT;
                            }
                        };
                    }
                }));
    }

Domain

Subdomains

Frequently Asked Questions

What does setup() do?
setup() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketStringEchoBusyWaitTest.java.
Where is setup() defined?
setup() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketStringEchoBusyWaitTest.java at line 40.

Analyze Your Own Codebase

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

Try Supermodel Free