testAddHandlerBeforeRegisteredThenReplace() — netty Function Reference
Architecture documentation for the testAddHandlerBeforeRegisteredThenReplace() function in DefaultChannelPipelineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 71c15ba1_df95_5dc0_4a5f_c8f70021adfb["testAddHandlerBeforeRegisteredThenReplace()"] 666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"] 71c15ba1_df95_5dc0_4a5f_c8f70021adfb -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2 a2eed25d_b7ba_1436_1910_39c9b1477519["next()"] 71c15ba1_df95_5dc0_4a5f_c8f70021adfb -->|calls| a2eed25d_b7ba_1436_1910_39c9b1477519 ac30b8e8_9379_bd28_0530_7a31e274fbef["CheckEventExecutorHandler()"] 71c15ba1_df95_5dc0_4a5f_c8f70021adfb -->|calls| ac30b8e8_9379_bd28_0530_7a31e274fbef style 71c15ba1_df95_5dc0_4a5f_c8f70021adfb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 1208–1228
@Test
@Timeout(value = 3000, unit = TimeUnit.MILLISECONDS)
public void testAddHandlerBeforeRegisteredThenReplace() throws Exception {
final EventLoop loop = group.next();
final CountDownLatch latch = new CountDownLatch(1);
CheckEventExecutorHandler handler = new CheckEventExecutorHandler(loop);
ChannelPipeline pipeline = new LocalChannel().pipeline();
pipeline.addFirst(handler);
assertFalse(handler.addedPromise.isDone());
group.register(pipeline.channel());
handler.addedPromise.syncUninterruptibly();
pipeline.replace(handler, null, new ChannelHandlerAdapter() {
@Override
public void handlerAdded(ChannelHandlerContext ctx) {
latch.countDown();
}
});
handler.removedPromise.syncUninterruptibly();
latch.await();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testAddHandlerBeforeRegisteredThenReplace() do?
testAddHandlerBeforeRegisteredThenReplace() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is testAddHandlerBeforeRegisteredThenReplace() defined?
testAddHandlerBeforeRegisteredThenReplace() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 1208.
What does testAddHandlerBeforeRegisteredThenReplace() call?
testAddHandlerBeforeRegisteredThenReplace() calls 2 function(s): CheckEventExecutorHandler, next.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free