Home / Class/ NettyBlockHoundIntegration Class — netty Architecture

NettyBlockHoundIntegration Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  f625172c_4522_6e01_267d_3da3ed51e2b7["NettyBlockHoundIntegration"]
  183447c3_76b0_2247_0d6e_5fe4721fb78f["Hidden.java"]
  f625172c_4522_6e01_267d_3da3ed51e2b7 -->|defined in| 183447c3_76b0_2247_0d6e_5fe4721fb78f
  291d74f3_15b5_9ebf_ea51_3451b04e699b["applyTo()"]
  f625172c_4522_6e01_267d_3da3ed51e2b7 -->|method| 291d74f3_15b5_9ebf_ea51_3451b04e699b
  e3f3a32e_8d90_9434_ed1f_36f0802ac418["compareTo()"]
  f625172c_4522_6e01_267d_3da3ed51e2b7 -->|method| e3f3a32e_8d90_9434_ed1f_36f0802ac418

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/Hidden.java lines 37–201

    @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"
            );

            builder.allowBlockingCallsInside(
                    "io.netty.handler.ssl.SslHandler",
                    "runAllDelegatedTasks"
            );
            builder.allowBlockingCallsInside(
                    "io.netty.handler.ssl.SslHandler",

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free