Home / Class/ DatagramSocketTestHandler Class — netty Architecture

DatagramSocketTestHandler Class — netty Architecture

Architecture documentation for the DatagramSocketTestHandler class in EpollReuseAddrTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  78a55b72_1be2_dfb0_c999_0f6f6c3683df["DatagramSocketTestHandler"]
  795118a9_6cf3_0704_be60_fdabf6668344["EpollReuseAddrTest.java"]
  78a55b72_1be2_dfb0_c999_0f6f6c3683df -->|defined in| 795118a9_6cf3_0704_be60_fdabf6668344
  bd874a09_d726_cce9_537d_08d0fa7b770b["DatagramSocketTestHandler()"]
  78a55b72_1be2_dfb0_c999_0f6f6c3683df -->|method| bd874a09_d726_cce9_537d_08d0fa7b770b
  b2089580_6404_23a7_947f_484a9bf0ae15["channelRead()"]
  78a55b72_1be2_dfb0_c999_0f6f6c3683df -->|method| b2089580_6404_23a7_947f_484a9bf0ae15

Relationship Graph

Source Code

transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollReuseAddrTest.java lines 246–259

    @ChannelHandler.Sharable
    private static class DatagramSocketTestHandler extends ChannelInboundHandlerAdapter {
        private final AtomicBoolean received;

        DatagramSocketTestHandler(AtomicBoolean received) {
            this.received = received;
        }

        @Override
        public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
            ReferenceCountUtil.release(msg);
            received.set(true);
        }
    }

Frequently Asked Questions

What is the DatagramSocketTestHandler class?
DatagramSocketTestHandler is a class in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollReuseAddrTest.java.
Where is DatagramSocketTestHandler defined?
DatagramSocketTestHandler is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollReuseAddrTest.java at line 246.

Analyze Your Own Codebase

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

Try Supermodel Free