Home / Function/ channelActive() — netty Function Reference

channelActive() — netty Function Reference

Architecture documentation for the channelActive() function in SocketBufReleaseTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8b4c0973_77f3_6035_baf5_17a24f076d11["channelActive()"]
  7e7bcffa_1366_f855_41f4_cb373829b03f["BufWriterHandler"]
  8b4c0973_77f3_6035_baf5_17a24f076d11 -->|defined in| 7e7bcffa_1366_f855_41f4_cb373829b03f
  style 8b4c0973_77f3_6035_baf5_17a24f076d11 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketBufReleaseTest.java lines 88–98

        @Override
        public void channelActive(final ChannelHandlerContext ctx) throws Exception {
            byte[] data = new byte[1024];
            random.nextBytes(data);

            buf = ctx.alloc().buffer();
            // call retain on it so it can't be put back on the pool
            buf.writeBytes(data).retain();

            ctx.channel().writeAndFlush(buf).addListener(future -> latch.countDown());
        }

Domain

Subdomains

Frequently Asked Questions

What does channelActive() do?
channelActive() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketBufReleaseTest.java.
Where is channelActive() defined?
channelActive() is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketBufReleaseTest.java at line 88.

Analyze Your Own Codebase

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

Try Supermodel Free