testFireChannelInactiveAndUnregistered() — netty Function Reference
Architecture documentation for the testFireChannelInactiveAndUnregistered() function in EmbeddedChannelTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d5bebaa8_e534_c95d_6301_fbb84e35aace["testFireChannelInactiveAndUnregistered()"] 300cabef_b042_697f_5623_37ce249f504d["EmbeddedChannelTest"] d5bebaa8_e534_c95d_6301_fbb84e35aace -->|defined in| 300cabef_b042_697f_5623_37ce249f504d 2410f4e9_6ad6_3dc0_c60f_b6fc5e031bfd["testFireChannelInactiveAndUnregisteredOnClose()"] 2410f4e9_6ad6_3dc0_c60f_b6fc5e031bfd -->|calls| d5bebaa8_e534_c95d_6301_fbb84e35aace 8d720b1f_a1b5_904e_9468_1c6dc17471e6["testFireChannelInactiveAndUnregisteredOnDisconnect()"] 8d720b1f_a1b5_904e_9468_1c6dc17471e6 -->|calls| d5bebaa8_e534_c95d_6301_fbb84e35aace style d5bebaa8_e534_c95d_6301_fbb84e35aace fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java lines 241–263
private static void testFireChannelInactiveAndUnregistered(Action action) throws InterruptedException {
final CountDownLatch latch = new CountDownLatch(3);
EmbeddedChannel channel = new EmbeddedChannel(new ChannelInboundHandlerAdapter() {
@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
latch.countDown();
ctx.executor().execute(new Runnable() {
@Override
public void run() {
// Should be executed.
latch.countDown();
}
});
}
@Override
public void channelUnregistered(ChannelHandlerContext ctx) throws Exception {
latch.countDown();
}
});
action.doRun(channel).syncUninterruptibly();
latch.await();
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does testFireChannelInactiveAndUnregistered() do?
testFireChannelInactiveAndUnregistered() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java.
Where is testFireChannelInactiveAndUnregistered() defined?
testFireChannelInactiveAndUnregistered() is defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java at line 241.
What calls testFireChannelInactiveAndUnregistered()?
testFireChannelInactiveAndUnregistered() is called by 2 function(s): testFireChannelInactiveAndUnregisteredOnClose, testFireChannelInactiveAndUnregisteredOnDisconnect.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free