Home / Function/ userEventTriggered() — netty Function Reference

userEventTriggered() — netty Function Reference

Architecture documentation for the userEventTriggered() function in QuicStreamFrameTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4cd83743_d8d6_77f0_0eb3_a8eadce94339["userEventTriggered()"]
  2d2331bc_6e47_3b29_d4ae_abf5f14b8b32["StreamHandler"]
  4cd83743_d8d6_77f0_0eb3_a8eadce94339 -->|defined in| 2d2331bc_6e47_3b29_d4ae_abf5f14b8b32
  3393507c_bec5_4ab7_6bf2_81f323d8c8d9["channelInactive()"]
  4cd83743_d8d6_77f0_0eb3_a8eadce94339 -->|calls| 3393507c_bec5_4ab7_6bf2_81f323d8c8d9
  style 4cd83743_d8d6_77f0_0eb3_a8eadce94339 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamFrameTest.java lines 115–125

        @Override
        public void userEventTriggered(ChannelHandlerContext ctx, Object evt) {
            if (evt == ChannelInputShutdownReadComplete.INSTANCE) {
                queue.add(2);
                if (((QuicStreamChannel) ctx.channel()).type() == QuicStreamType.BIDIRECTIONAL) {
                    // Let's write back a fin which will also close the channel and so call channelInactive(...)
                    ctx.writeAndFlush(new DefaultQuicStreamFrame(Unpooled.EMPTY_BUFFER, true));
                }
                ctx.channel().parent().close();
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does userEventTriggered() do?
userEventTriggered() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamFrameTest.java.
Where is userEventTriggered() defined?
userEventTriggered() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamFrameTest.java at line 115.
What does userEventTriggered() call?
userEventTriggered() calls 1 function(s): channelInactive.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free