Home / Class/ SkipHandler Class — netty Architecture

SkipHandler Class — netty Architecture

Architecture documentation for the SkipHandler class in DefaultChannelPipelineTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2d8ce861_ad36_563f_1e35_44aa023dd70d["SkipHandler"]
  ded22145_bbcf_15a1_69b7_30cac8d4be02["DefaultChannelPipelineTest.java"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|defined in| ded22145_bbcf_15a1_69b7_30cac8d4be02
  efa518fa_6013_db47_2344_fe02206b8d91["fail()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| efa518fa_6013_db47_2344_fe02206b8d91
  0d676d9a_fafb_b2c0_0186_5827807e29fa["bind()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| 0d676d9a_fafb_b2c0_0186_5827807e29fa
  dff9be27_10d4_45a6_bef6_49b230151fc0["connect()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| dff9be27_10d4_45a6_bef6_49b230151fc0
  00f72241_cef3_da86_3648_41f58378d560["disconnect()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| 00f72241_cef3_da86_3648_41f58378d560
  76d0323d_6adb_0c4c_dee1_48f5476bd522["close()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| 76d0323d_6adb_0c4c_dee1_48f5476bd522
  52e263a1_74a4_0bf3_c249_8ce56a1b18bd["deregister()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| 52e263a1_74a4_0bf3_c249_8ce56a1b18bd
  d148cce7_a14a_5ca0_7c47_778779e3ba3a["read()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| d148cce7_a14a_5ca0_7c47_778779e3ba3a
  1bb1c1cc_77dd_d360_5aff_fec13914d331["write()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| 1bb1c1cc_77dd_d360_5aff_fec13914d331
  dd33d524_2d67_32bc_4376_f2af65f2f584["flush()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| dd33d524_2d67_32bc_4376_f2af65f2f584
  5fc622fb_5f4c_7d67_185e_c49b439ee8ee["channelRegistered()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| 5fc622fb_5f4c_7d67_185e_c49b439ee8ee
  1d452d01_3db6_52b5_379d_35d9b73113bd["channelUnregistered()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| 1d452d01_3db6_52b5_379d_35d9b73113bd
  cd324eb4_5f6d_be7d_50c6_e253e4a9ddcb["channelActive()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| cd324eb4_5f6d_be7d_50c6_e253e4a9ddcb
  ed6bf91e_c899_ad72_f4a9_3f88ea91b5f7["channelInactive()"]
  2d8ce861_ad36_563f_1e35_44aa023dd70d -->|method| ed6bf91e_c899_ad72_f4a9_3f88ea91b5f7

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 1714–1859

        final class SkipHandler implements ChannelInboundHandler, ChannelOutboundHandler {
            private int state = 2;
            private Error errorRef;

            private void fail() {
                errorRef = new AssertionError("Method should never been called");
            }

            @Skip
            @Override
            public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) {
                fail();
                ctx.bind(localAddress, promise);
            }

            @Skip
            @Override
            public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress,
                                SocketAddress localAddress, ChannelPromise promise) {
                fail();
                ctx.connect(remoteAddress, localAddress, promise);
            }

            @Skip
            @Override
            public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) {
                fail();
                ctx.disconnect(promise);
            }

            @Skip
            @Override
            public void close(ChannelHandlerContext ctx, ChannelPromise promise) {
                fail();
                ctx.close(promise);
            }

            @Skip
            @Override
            public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) {
                fail();
                ctx.deregister(promise);
            }

            @Skip
            @Override
            public void read(ChannelHandlerContext ctx) {
                fail();
                ctx.read();
            }

            @Skip
            @Override
            public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) {
                fail();
                ctx.write(msg, promise);
            }

            @Skip
            @Override
            public void flush(ChannelHandlerContext ctx) {
                fail();
                ctx.flush();
            }

            @Skip
            @Override
            public void channelRegistered(ChannelHandlerContext ctx) {
                fail();
                ctx.fireChannelRegistered();
            }

            @Skip
            @Override
            public void channelUnregistered(ChannelHandlerContext ctx) {
                fail();
                ctx.fireChannelUnregistered();
            }

            @Skip
            @Override

Frequently Asked Questions

What is the SkipHandler class?
SkipHandler is a class in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is SkipHandler defined?
SkipHandler is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 1714.

Analyze Your Own Codebase

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

Try Supermodel Free