类 ActionDispatcher

  • 所有已实现的接口:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class ActionDispatcher
    extends io.netty.channel.ChannelInboundHandlerAdapter
    Action 分发器,收到 request 后不做实际业务处理,而是组装 action 并交给处理。
    • 嵌套类概要

      • 从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void channelRead​(io.netty.channel.ChannelHandlerContext ctx, Object msg)  
      void channelReadComplete​(io.netty.channel.ChannelHandlerContext ctx)  
      void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)  
      void init​(String configFilePath, String suffix)  
      • 从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
      • 从类继承的方法 io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • 从接口继承的方法 io.netty.channel.ChannelHandler

        handlerAdded, handlerRemoved
    • 字段详细资料

    • 构造器详细资料

      • ActionDispatcher

        public ActionDispatcher()
    • 方法详细资料

      • channelReadComplete

        public void channelReadComplete​(io.netty.channel.ChannelHandlerContext ctx)
        指定者:
        channelReadComplete 在接口中 io.netty.channel.ChannelInboundHandler
        覆盖:
        channelReadComplete 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      • channelRead

        public void channelRead​(io.netty.channel.ChannelHandlerContext ctx,
                                Object msg)
                         throws Exception
        指定者:
        channelRead 在接口中 io.netty.channel.ChannelInboundHandler
        覆盖:
        channelRead 在类中 io.netty.channel.ChannelInboundHandlerAdapter
        抛出:
        Exception
      • exceptionCaught

        public void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
        指定者:
        exceptionCaught 在接口中 io.netty.channel.ChannelHandler
        指定者:
        exceptionCaught 在接口中 io.netty.channel.ChannelInboundHandler
        覆盖:
        exceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapter