newFactories() — netty Function Reference
Architecture documentation for the newFactories() function in EpollSocketMultipleConnectTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6fa001c5_abad_dbe3_da87_4ef50b8711be["newFactories()"] 1bfcac51_8439_5c0f_2784_d92fbcc4af3d["EpollSocketMultipleConnectTest"] 6fa001c5_abad_dbe3_da87_4ef50b8711be -->|defined in| 1bfcac51_8439_5c0f_2784_d92fbcc4af3d style 6fa001c5_abad_dbe3_da87_4ef50b8711be fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketMultipleConnectTest.java lines 31–49
@Override
protected List<TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap>> newFactories() {
List<TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap>> factories
= new ArrayList<TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap>>();
for (TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap> comboFactory
: EpollSocketTestPermutation.INSTANCE.socketWithFastOpen()) {
EventLoopGroup group = comboFactory.newClientInstance().config().group();
if (group instanceof IoEventLoopGroup && ((IoEventLoopGroup) group).isIoType(NioIoHandler.class)) {
factories.add(comboFactory);
}
if (group instanceof IoEventLoopGroup) {
IoEventLoopGroup ioGroup = (IoEventLoopGroup) group;
if (ioGroup.isIoType(NioIoHandler.class) || ioGroup.isIoType(EpollIoHandler.class)) {
factories.add(comboFactory);
}
}
}
return factories;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does newFactories() do?
newFactories() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketMultipleConnectTest.java.
Where is newFactories() defined?
newFactories() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketMultipleConnectTest.java at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free