Home / Function/ prependChannelConsumer() — netty Function Reference

prependChannelConsumer() — netty Function Reference

Architecture documentation for the prependChannelConsumer() function in EmbeddedQuicChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  516a4785_7a53_bdfc_9f69_62bc81acd11d["prependChannelConsumer()"]
  95e61221_4cd7_7cb2_42da_fdc002019d19["EmbeddedQuicChannel"]
  516a4785_7a53_bdfc_9f69_62bc81acd11d -->|defined in| 95e61221_4cd7_7cb2_42da_fdc002019d19
  1f4eeed0_a36a_7c51_3f64_bad3cc2f82a1["EmbeddedQuicChannel()"]
  1f4eeed0_a36a_7c51_3f64_bad3cc2f82a1 -->|calls| 516a4785_7a53_bdfc_9f69_62bc81acd11d
  style 516a4785_7a53_bdfc_9f69_62bc81acd11d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/test/java/io/netty/handler/codec/http3/EmbeddedQuicChannel.java lines 86–98

    static ChannelHandler[] prependChannelConsumer(Consumer<Channel> channelConsumer,
                                                   ChannelHandler... handlers) {
        ChannelHandler[] toReturn = new ChannelHandler[handlers.length + 1];
        toReturn[0] = new ChannelInboundHandlerAdapter() {
            @Override
            public void handlerAdded(ChannelHandlerContext ctx) throws Exception {
                channelConsumer.accept(ctx.channel());
                super.handlerAdded(ctx);
            }
        };
        arraycopy(handlers, 0, toReturn, 1, handlers.length);
        return toReturn;
    }

Domain

Subdomains

Frequently Asked Questions

What does prependChannelConsumer() do?
prependChannelConsumer() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/EmbeddedQuicChannel.java.
Where is prependChannelConsumer() defined?
prependChannelConsumer() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/EmbeddedQuicChannel.java at line 86.
What calls prependChannelConsumer()?
prependChannelConsumer() is called by 1 function(s): EmbeddedQuicChannel.

Analyze Your Own Codebase

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

Try Supermodel Free