testShutdownGracefullyNoQuietPeriod() — netty Function Reference
Architecture documentation for the testShutdownGracefullyNoQuietPeriod() function in AbstractEventLoopTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c2593d9b_6cfc_4e75_5ab0_c14dccee4fc9["testShutdownGracefullyNoQuietPeriod()"] 3af4ae7a_14bb_5400_5cb6_2dab6e677f86["AbstractEventLoopTest"] c2593d9b_6cfc_4e75_5ab0_c14dccee4fc9 -->|defined in| 3af4ae7a_14bb_5400_5cb6_2dab6e677f86 ad9b962d_d7d4_34f1_3b1e_3c74ab939d1b["newChannel()"] c2593d9b_6cfc_4e75_5ab0_c14dccee4fc9 -->|calls| ad9b962d_d7d4_34f1_3b1e_3c74ab939d1b style c2593d9b_6cfc_4e75_5ab0_c14dccee4fc9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/AbstractEventLoopTest.java lines 215–232
@Test
@Timeout(value = 5000, unit = TimeUnit.MILLISECONDS)
public void testShutdownGracefullyNoQuietPeriod() throws Exception {
EventLoopGroup loop = newEventLoopGroup();
ServerBootstrap b = new ServerBootstrap();
b.group(loop)
.channel(newChannel())
.childHandler(new ChannelInboundHandlerAdapter());
// Not close the Channel to ensure the EventLoop is still shutdown in time.
b.bind(0).sync().channel();
Future<?> f = loop.shutdownGracefully(0, 1, TimeUnit.MINUTES);
assertTrue(loop.awaitTermination(600, TimeUnit.MILLISECONDS));
assertTrue(f.syncUninterruptibly().isSuccess());
assertTrue(loop.isShutdown());
assertTrue(loop.isTerminated());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testShutdownGracefullyNoQuietPeriod() do?
testShutdownGracefullyNoQuietPeriod() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/AbstractEventLoopTest.java.
Where is testShutdownGracefullyNoQuietPeriod() defined?
testShutdownGracefullyNoQuietPeriod() is defined in transport/src/test/java/io/netty/channel/AbstractEventLoopTest.java at line 215.
What does testShutdownGracefullyNoQuietPeriod() call?
testShutdownGracefullyNoQuietPeriod() calls 1 function(s): newChannel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free