Home / Class/ ChannelInboundHandlerAdapter Class — netty Architecture

ChannelInboundHandlerAdapter Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  b8105e30_4361_3b37_8001_5da19e3b9298["ChannelInboundHandlerAdapter"]
  c9f0abeb_3d8f_823f_b0dd_6eb67fa45ac9["ChannelInboundHandlerAdapter.java"]
  b8105e30_4361_3b37_8001_5da19e3b9298 -->|defined in| c9f0abeb_3d8f_823f_b0dd_6eb67fa45ac9
  15768d5a_dc91_0f7a_9181_202a342b5752["channelRegistered()"]
  b8105e30_4361_3b37_8001_5da19e3b9298 -->|method| 15768d5a_dc91_0f7a_9181_202a342b5752
  af5a8a01_8af7_962e_a7ed_595e05bb5894["channelUnregistered()"]
  b8105e30_4361_3b37_8001_5da19e3b9298 -->|method| af5a8a01_8af7_962e_a7ed_595e05bb5894
  32c1f2a2_e590_f960_3472_e3382b046ecf["channelActive()"]
  b8105e30_4361_3b37_8001_5da19e3b9298 -->|method| 32c1f2a2_e590_f960_3472_e3382b046ecf
  2bb0355a_068d_7ee8_a3dd_e7da49a9312a["channelInactive()"]
  b8105e30_4361_3b37_8001_5da19e3b9298 -->|method| 2bb0355a_068d_7ee8_a3dd_e7da49a9312a
  5419e5b0_1dc7_70b3_e7c2_ec065e1ae5a4["channelRead()"]
  b8105e30_4361_3b37_8001_5da19e3b9298 -->|method| 5419e5b0_1dc7_70b3_e7c2_ec065e1ae5a4
  c3f717b9_74f4_90af_8b7b_04cd4c0046bc["channelReadComplete()"]
  b8105e30_4361_3b37_8001_5da19e3b9298 -->|method| c3f717b9_74f4_90af_8b7b_04cd4c0046bc
  9896ebb9_aecb_b0b5_9b39_be601a288e08["userEventTriggered()"]
  b8105e30_4361_3b37_8001_5da19e3b9298 -->|method| 9896ebb9_aecb_b0b5_9b39_be601a288e08
  0b8f1e02_9a08_b650_f3e1_2d463a401e50["channelWritabilityChanged()"]
  b8105e30_4361_3b37_8001_5da19e3b9298 -->|method| 0b8f1e02_9a08_b650_f3e1_2d463a401e50
  0ab8d52e_9325_fd7a_b014_30612d8b2dd7["exceptionCaught()"]
  b8105e30_4361_3b37_8001_5da19e3b9298 -->|method| 0ab8d52e_9325_fd7a_b014_30612d8b2dd7

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/ChannelInboundHandlerAdapter.java lines 34–145

public class ChannelInboundHandlerAdapter extends ChannelHandlerAdapter implements ChannelInboundHandler {

    /**
     * Calls {@link ChannelHandlerContext#fireChannelRegistered()} to forward
     * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}.
     *
     * Sub-classes may override this method to change behavior.
     */
    @Skip
    @Override
    public void channelRegistered(ChannelHandlerContext ctx) throws Exception {
        ctx.fireChannelRegistered();
    }

    /**
     * Calls {@link ChannelHandlerContext#fireChannelUnregistered()} to forward
     * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}.
     *
     * Sub-classes may override this method to change behavior.
     */
    @Skip
    @Override
    public void channelUnregistered(ChannelHandlerContext ctx) throws Exception {
        ctx.fireChannelUnregistered();
    }

    /**
     * Calls {@link ChannelHandlerContext#fireChannelActive()} to forward
     * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}.
     *
     * Sub-classes may override this method to change behavior.
     */
    @Skip
    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {
        ctx.fireChannelActive();
    }

    /**
     * Calls {@link ChannelHandlerContext#fireChannelInactive()} to forward
     * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}.
     *
     * Sub-classes may override this method to change behavior.
     */
    @Skip
    @Override
    public void channelInactive(ChannelHandlerContext ctx) throws Exception {
        ctx.fireChannelInactive();
    }

    /**
     * Calls {@link ChannelHandlerContext#fireChannelRead(Object)} to forward
     * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}.
     *
     * Sub-classes may override this method to change behavior.
     */
    @Skip
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        ctx.fireChannelRead(msg);
    }

    /**
     * Calls {@link ChannelHandlerContext#fireChannelReadComplete()} to forward
     * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}.
     *
     * Sub-classes may override this method to change behavior.
     */
    @Skip
    @Override
    public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
        ctx.fireChannelReadComplete();
    }

    /**
     * Calls {@link ChannelHandlerContext#fireUserEventTriggered(Object)} to forward
     * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}.
     *
     * Sub-classes may override this method to change behavior.
     */
    @Skip

Frequently Asked Questions

What is the ChannelInboundHandlerAdapter class?
ChannelInboundHandlerAdapter is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/ChannelInboundHandlerAdapter.java.
Where is ChannelInboundHandlerAdapter defined?
ChannelInboundHandlerAdapter is defined in transport/src/main/java/io/netty/channel/ChannelInboundHandlerAdapter.java at line 34.

Analyze Your Own Codebase

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

Try Supermodel Free