teardown() — netty Function Reference
Architecture documentation for the teardown() function in InboundHttp2ToHttpAdapterTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 55daa93c_d576_1d18_a585_554aaa88d063["teardown()"] b5bf07b2_a16a_fa49_d2b2_c4bdea19488b["InboundHttp2ToHttpAdapterTest"] 55daa93c_d576_1d18_a585_554aaa88d063 -->|defined in| b5bf07b2_a16a_fa49_d2b2_c4bdea19488b 7bc49ace_cff4_fda1_774a_4687d47ac3b0["cleanupCapturedRequests()"] 55daa93c_d576_1d18_a585_554aaa88d063 -->|calls| 7bc49ace_cff4_fda1_774a_4687d47ac3b0 dc9fa8f1_fa90_b878_0be7_3f30f281694c["cleanupCapturedResponses()"] 55daa93c_d576_1d18_a585_554aaa88d063 -->|calls| dc9fa8f1_fa90_b878_0be7_3f30f281694c style 55daa93c_d576_1d18_a585_554aaa88d063 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/InboundHttp2ToHttpAdapterTest.java lines 112–135
@AfterEach
public void teardown() throws Exception {
cleanupCapturedRequests();
cleanupCapturedResponses();
if (clientChannel != null) {
clientChannel.close().syncUninterruptibly();
clientChannel = null;
}
if (serverChannel != null) {
serverChannel.close().syncUninterruptibly();
serverChannel = null;
}
final Channel serverConnectedChannel = this.serverConnectedChannel;
if (serverConnectedChannel != null) {
serverConnectedChannel.close().syncUninterruptibly();
this.serverConnectedChannel = null;
}
Future<?> serverGroup = sb.config().group().shutdownGracefully(0, 5, SECONDS);
Future<?> serverChildGroup = sb.config().childGroup().shutdownGracefully(0, 5, SECONDS);
Future<?> clientGroup = cb.config().group().shutdownGracefully(0, 5, SECONDS);
serverGroup.syncUninterruptibly();
serverChildGroup.syncUninterruptibly();
clientGroup.syncUninterruptibly();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does teardown() do?
teardown() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/InboundHttp2ToHttpAdapterTest.java.
Where is teardown() defined?
teardown() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/InboundHttp2ToHttpAdapterTest.java at line 112.
What does teardown() call?
teardown() calls 2 function(s): cleanupCapturedRequests, cleanupCapturedResponses.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free