public class HippoRequestHandler
extends io.netty.channel.SimpleChannelInboundHandler<com.github.hippo.bean.HippoResponse>
| 构造器和说明 |
|---|
HippoRequestHandler(String serviceName,
io.netty.channel.EventLoopGroup eventLoopGroup,
String host,
int port) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
com.github.hippo.bean.HippoResponse |
sendOneWay(com.github.hippo.bean.HippoRequest hippoRequest) |
com.github.hippo.bean.HippoResponse |
sendWithCallBack(HippoResultCallBack hippoResultCallBack) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
channelActive, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaughtpublic 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)
public com.github.hippo.bean.HippoResponse sendOneWay(com.github.hippo.bean.HippoRequest hippoRequest)
public com.github.hippo.bean.HippoResponse sendWithCallBack(HippoResultCallBack hippoResultCallBack)
Copyright © 2017. All rights reserved.