afterAll() — netty Function Reference
Architecture documentation for the afterAll() function in LeakPresenceExtension.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3674c477_c44b_6459_665d_3a1b4ff3ea6c["afterAll()"] 4aa8c5e8_067e_2569_2cc8_34469837e207["LeakPresenceExtension"] 3674c477_c44b_6459_665d_3a1b4ff3ea6c -->|defined in| 4aa8c5e8_067e_2569_2cc8_34469837e207 style 3674c477_c44b_6459_665d_3a1b4ff3ea6c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
testsuite-common/src/main/java/io/netty/util/test/LeakPresenceExtension.java lines 97–109
@Override
public void afterAll(ExtensionContext context) throws InterruptedException {
LeakPresenceDetector.ResourceScope scope =
(LeakPresenceDetector.ResourceScope) context.getStore(ExtensionContext.Namespace.GLOBAL).get(SCOPE_KEY);
// Wait some time for resources to close. Many tests do loop.shutdownGracefully without waiting, and that's ok.
long start = System.nanoTime();
while (scope.hasOpenResources() && System.nanoTime() - start < TimeUnit.SECONDS.toNanos(5)) {
TimeUnit.MILLISECONDS.sleep(100);
}
scope.close();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does afterAll() do?
afterAll() is a function in the netty codebase, defined in testsuite-common/src/main/java/io/netty/util/test/LeakPresenceExtension.java.
Where is afterAll() defined?
afterAll() is defined in testsuite-common/src/main/java/io/netty/util/test/LeakPresenceExtension.java at line 97.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free