testWriteAfterClosedOrShutdown() — netty Function Reference
Architecture documentation for the testWriteAfterClosedOrShutdown() function in QuicStreamChannelCloseTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8c3ae860_d907_0be0_493f_ce2cd6dff9cd["testWriteAfterClosedOrShutdown()"] f6302430_ab38_2061_da3d_4d6633f03714["QuicStreamChannelCloseTest"] 8c3ae860_d907_0be0_493f_ce2cd6dff9cd -->|defined in| f6302430_ab38_2061_da3d_4d6633f03714 aca22f89_a2c6_f37f_4a41_97337ecc5ed2["testWriteToUnidirectionalAfterShutdownOutput()"] aca22f89_a2c6_f37f_4a41_97337ecc5ed2 -->|calls| 8c3ae860_d907_0be0_493f_ce2cd6dff9cd 6a829470_2880_5d08_ab8f_98a14e85a510["testWriteToBidirectionalAfterShutdownOutput()"] 6a829470_2880_5d08_ab8f_98a14e85a510 -->|calls| 8c3ae860_d907_0be0_493f_ce2cd6dff9cd 5972d216_48de_8798_863d_d7a060c7d3d6["testWriteToUnidirectionalAfterClose()"] 5972d216_48de_8798_863d_d7a060c7d3d6 -->|calls| 8c3ae860_d907_0be0_493f_ce2cd6dff9cd 7f6045e9_137d_14e1_9b6f_dde856c961f0["testWriteToBidirectionalAfterClose()"] 7f6045e9_137d_14e1_9b6f_dde856c961f0 -->|calls| 8c3ae860_d907_0be0_493f_ce2cd6dff9cd 2ff0bf8e_4bc1_50b8_10b1_3e9eaef19a00["StreamCreationAndTearDownHandler()"] 8c3ae860_d907_0be0_493f_ce2cd6dff9cd -->|calls| 2ff0bf8e_4bc1_50b8_10b1_3e9eaef19a00 style 8c3ae860_d907_0be0_493f_ce2cd6dff9cd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java lines 191–226
private static void testWriteAfterClosedOrShutdown(Executor executor, QuicStreamType type,
boolean halfClose) throws Throwable {
Channel server = null;
Channel channel = null;
try {
final Promise<Channel> streamPromise = ImmediateEventExecutor.INSTANCE.newPromise();
server = QuicTestUtils.newServer(executor, new ChannelInboundHandlerAdapter(), new StreamHandler());
channel = QuicTestUtils.newClient(executor);
StreamCreationAndTearDownHandler creationHandler =
new StreamCreationAndTearDownHandler(type, halfClose, streamPromise);
QuicChannel quicChannel = QuicTestUtils.newQuicChannelBootstrap(channel)
.handler(creationHandler)
.streamHandler(new ChannelInboundHandlerAdapter())
.remoteAddress(server.localAddress())
.connect()
.get();
// ChannelOutputShutdownException should only be used when its a BIDIRECTIONAL channel and half-closure
// is used.
Class<? extends Throwable> causeClass =
halfClose && type != QuicStreamType.UNIDIRECTIONAL ?
ChannelOutputShutdownException.class : ClosedChannelException.class;
assertInstanceOf(causeClass, streamPromise.await().cause());
quicChannel.close().sync();
// Wait till the client was closed
quicChannel.closeFuture().sync();
creationHandler.assertState();
} finally {
QuicTestUtils.closeIfNotNull(channel);
QuicTestUtils.closeIfNotNull(server);
shutdown(executor);
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does testWriteAfterClosedOrShutdown() do?
testWriteAfterClosedOrShutdown() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java.
Where is testWriteAfterClosedOrShutdown() defined?
testWriteAfterClosedOrShutdown() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java at line 191.
What does testWriteAfterClosedOrShutdown() call?
testWriteAfterClosedOrShutdown() calls 1 function(s): StreamCreationAndTearDownHandler.
What calls testWriteAfterClosedOrShutdown()?
testWriteAfterClosedOrShutdown() is called by 4 function(s): testWriteToBidirectionalAfterClose, testWriteToBidirectionalAfterShutdownOutput, testWriteToUnidirectionalAfterClose, testWriteToUnidirectionalAfterShutdownOutput.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free