testSubmitAfterDestroy() — netty Function Reference
Architecture documentation for the testSubmitAfterDestroy() function in IoUringIoHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0d776802_6f1e_94c6_a1e8_7e313205fc79["testSubmitAfterDestroy()"] a5c22e87_b6d0_cf88_f1c4_d3668b78fb7d["IoUringIoHandlerTest"] 0d776802_6f1e_94c6_a1e8_7e313205fc79 -->|defined in| a5c22e87_b6d0_cf88_f1c4_d3668b78fb7d style 0d776802_6f1e_94c6_a1e8_7e313205fc79 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringIoHandlerTest.java lines 127–159
@Test
public void testSubmitAfterDestroy() throws Exception {
IoHandlerFactory ioHandlerFactory = IoUringIoHandler.newFactory();
IoHandler handler = ioHandlerFactory.newHandler(new ThreadAwareExecutor() {
@Override
public boolean isExecutorThread(Thread thread) {
return true;
}
@Override
public void execute(Runnable command) {
command.run();
}
});
handler.initialize();
IoRegistration registration = handler.register(new IoUringIoHandle() {
@Override
public void handle(IoRegistration registration, IoEvent ioEvent) {
fail();
}
@Override
public void close() {
// Noop
}
});
handler.prepareToDestroy();
handler.destroy();
assertThrows(IllegalStateException.class, () ->
registration.submit(new IoUringIoOps(Native.IORING_OP_NOP, (byte) 0,
(short) 0, -1, 0, 0, 0, 0, (short) 0, (short) 0, (short) 0, 0, 0)));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSubmitAfterDestroy() do?
testSubmitAfterDestroy() is a function in the netty codebase, defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringIoHandlerTest.java.
Where is testSubmitAfterDestroy() defined?
testSubmitAfterDestroy() is defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringIoHandlerTest.java at line 127.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free