StreamCreationHandler Class — netty Architecture
Architecture documentation for the StreamCreationHandler class in QuicStreamHalfClosureTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 96630fcc_3e3e_f0db_026b_7149a1d67128["StreamCreationHandler"] ca5f6d82_99cb_9d45_006a_7771dc542641["QuicStreamHalfClosureTest.java"] 96630fcc_3e3e_f0db_026b_7149a1d67128 -->|defined in| ca5f6d82_99cb_9d45_006a_7771dc542641 2b6b7a24_7537_f4bf_ee5a_95cb275c102d["StreamCreationHandler()"] 96630fcc_3e3e_f0db_026b_7149a1d67128 -->|method| 2b6b7a24_7537_f4bf_ee5a_95cb275c102d 97fb892c_beeb_2834_ec2f_eee7983ed695["channelActive()"] 96630fcc_3e3e_f0db_026b_7149a1d67128 -->|method| 97fb892c_beeb_2834_ec2f_eee7983ed695
Relationship Graph
Source Code
codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamHalfClosureTest.java lines 79–99
private static final class StreamCreationHandler extends QuicChannelValidationHandler {
private final QuicStreamType type;
StreamCreationHandler(QuicStreamType type) {
this.type = type;
}
@Override
public void channelActive(ChannelHandlerContext ctx) {
super.channelActive(ctx);
QuicChannel channel = (QuicChannel) ctx.channel();
channel.createStream(type, new ChannelInboundHandlerAdapter() {
@Override
public void channelActive(ChannelHandlerContext ctx) {
// Do the write and close the channel
ctx.writeAndFlush(Unpooled.buffer().writeZero(8))
.addListener(ChannelFutureListener.CLOSE);
}
});
}
}
Defined In
Source
Frequently Asked Questions
What is the StreamCreationHandler class?
StreamCreationHandler is a class in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamHalfClosureTest.java.
Where is StreamCreationHandler defined?
StreamCreationHandler is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamHalfClosureTest.java at line 79.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free