@ChannelHandler.Sharable
public class Netty4Handler
extends io.netty.channel.SimpleChannelInboundHandler
| 构造器和说明 |
|---|
Netty4Handler(com.alibaba.dubbo.common.URL url,
com.alibaba.dubbo.remoting.ChannelHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext channelHandlerContext,
Object o) |
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
Map<String,com.alibaba.dubbo.remoting.Channel> |
getChannels() |
channelActive, channelInactive, channelReadComplete, channelWritabilityChanged, userEventTriggeredpublic Netty4Handler(com.alibaba.dubbo.common.URL url,
com.alibaba.dubbo.remoting.ChannelHandler handler)
public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelRegistered 在接口中 io.netty.channel.ChannelInboundHandlerchannelRegistered 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelUnregistered 在接口中 io.netty.channel.ChannelInboundHandlerchannelUnregistered 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2015. All rights reserved.