Home / Class/ Hidden Class — netty Architecture

Hidden Class — netty Architecture

Architecture documentation for the Hidden class in Hidden.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6688b456_9ac0_20f5_e69e_c417ac2d0e1f["Hidden"]
  183447c3_76b0_2247_0d6e_5fe4721fb78f["Hidden.java"]
  6688b456_9ac0_20f5_e69e_c417ac2d0e1f -->|defined in| 183447c3_76b0_2247_0d6e_5fe4721fb78f

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/Hidden.java lines 29–202

class Hidden {

    /**
     * This class integrates Netty with BlockHound.
     * <p>
     * It is public but only because of the ServiceLoader's limitations
     * and SHOULD NOT be considered a public API.
     */
    @UnstableApi
    public static final class NettyBlockHoundIntegration implements BlockHoundIntegration {

        @Override
        public void applyTo(BlockHound.Builder builder) {
            builder.allowBlockingCallsInside(
                    "io.netty.channel.nio.NioEventLoop",
                    "handleLoopException"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.channel.kqueue.KQueueEventLoop",
                    "handleLoopException"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.channel.epoll.EpollEventLoop",
                    "handleLoopException"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.util.HashedWheelTimer",
                    "start"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.util.HashedWheelTimer",
                    "stop"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.util.HashedWheelTimer$Worker",
                    "waitForNextTick"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.util.concurrent.SingleThreadEventExecutor",
                    "confirmShutdown"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.buffer.PoolArena",
                    "lock"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.buffer.PoolSubpage",
                    "lock"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.buffer.PoolChunk",
                    "allocateRun"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.buffer.PoolChunk",
                    "free"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.buffer.AdaptivePoolingAllocator$1",
                    "initialValue"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.buffer.AdaptivePoolingAllocator$1",
                    "onRemoval"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.handler.ssl.SslHandler",
                    "handshake"

Frequently Asked Questions

What is the Hidden class?
Hidden is a class in the netty codebase, defined in common/src/main/java/io/netty/util/internal/Hidden.java.
Where is Hidden defined?
Hidden is defined in common/src/main/java/io/netty/util/internal/Hidden.java at line 29.

Analyze Your Own Codebase

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

Try Supermodel Free