类 ActionDispatcher
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.nutz.integration.nettice.core.ActionDispatcher
-
- 所有已实现的接口:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class ActionDispatcher extends io.netty.channel.ChannelInboundHandlerAdapterAction 分发器,收到 request 后不做实际业务处理,而是组装 action 并交给处理。
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static RouterContextrouterContext
-
构造器概要
构造器 构造器 说明 ActionDispatcher()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)voidchannelReadComplete(io.netty.channel.ChannelHandlerContext ctx)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)voidinit(String configFilePath, String suffix)-
从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
字段详细资料
-
routerContext
protected static RouterContext routerContext
-
-
方法详细资料
-
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
-
-