类 ClientHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<Object>
-
- network.nerve.core.rpc.netty.handler.ClientHandler
-
- 所有已实现的接口:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class ClientHandler extends io.netty.channel.SimpleChannelInboundHandler<Object>
客户端事件触发处理类 Client Event Triggering Processing Class- 作者:
- tag 2019/2/21
-
-
构造器概要
构造器 构造器 说明 ClientHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handShaker)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)protected voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, Object msg)voidchannelUnregistered(io.netty.channel.ChannelHandlerContext ctx)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)io.netty.channel.ChannelPromisegetHandshakeFuture()io.netty.handler.codec.http.websocketx.WebSocketClientHandshakergetHandshaker()voidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx)io.netty.channel.ChannelFuturehandshakeFuture()voidsetHandshakeFuture(io.netty.channel.ChannelPromise handshakeFuture)voidsetHandshaker(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handShaker)-
从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelWritabilityChanged, userEventTriggered
-
-
-
-
方法详细资料
-
handlerAdded
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
- 指定者:
handlerAdded在接口中io.netty.channel.ChannelHandler- 覆盖:
handlerAdded在类中io.netty.channel.ChannelHandlerAdapter
-
getHandshaker
public io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker getHandshaker()
-
setHandshaker
public void setHandshaker(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handShaker)
-
getHandshakeFuture
public io.netty.channel.ChannelPromise getHandshakeFuture()
-
setHandshakeFuture
public void setHandshakeFuture(io.netty.channel.ChannelPromise handshakeFuture)
-
handshakeFuture
public io.netty.channel.ChannelFuture handshakeFuture()
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
- 指定者:
channelActive在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelActive在类中io.netty.channel.ChannelInboundHandlerAdapter
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
-
channelUnregistered
public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) throws Exception- 指定者:
channelUnregistered在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelUnregistered在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- 指定者:
channelInactive在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelInactive在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception- 指定者:
exceptionCaught在接口中io.netty.channel.ChannelHandler- 指定者:
exceptionCaught在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
exceptionCaught在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
-