public class HippoRequestHandler
extends io.netty.channel.SimpleChannelInboundHandler<com.github.hippo.bean.HippoResponse>
| 构造器和说明 |
|---|
HippoRequestHandler(String serviceName,
io.netty.channel.EventLoopGroup eventLoopGroup) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx)
没想好是否要主动重连 下一个请求进来也是能重连的
|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext arg0,
com.github.hippo.bean.HippoResponse response) |
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
sendAsync(HippoResultCallBack hippoResultCallBack) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
channelActive, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaughtpublic HippoRequestHandler(String serviceName, io.netty.channel.EventLoopGroup eventLoopGroup)
public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelRegistered 在接口中 io.netty.channel.ChannelInboundHandlerchannelRegistered 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected void channelRead0(io.netty.channel.ChannelHandlerContext arg0,
com.github.hippo.bean.HippoResponse response)
throws Exception
channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandler<com.github.hippo.bean.HippoResponse>Exceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered 在接口中 io.netty.channel.ChannelInboundHandleruserEventTriggered 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive 在接口中 io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void sendAsync(HippoResultCallBack hippoResultCallBack)
Copyright © 2017. All rights reserved.