Class NettyHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelHandler
org.apache.dubbo.remoting.transport.netty.NettyHandler
- All Implemented Interfaces:
org.jboss.netty.channel.ChannelDownstreamHandler,org.jboss.netty.channel.ChannelHandler,org.jboss.netty.channel.ChannelUpstreamHandler
@Sharable
public class NettyHandler
extends org.jboss.netty.channel.SimpleChannelHandler
NettyHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) voidchannelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) voidexceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) voidmessageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) voidwriteRequested(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) Methods inherited from class org.jboss.netty.channel.SimpleChannelHandler
bindRequested, channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete
-
Constructor Details
-
NettyHandler
-
-
Method Details
-
getChannels
-
channelConnected
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception - Overrides:
channelConnectedin classorg.jboss.netty.channel.SimpleChannelHandler- Throws:
Exception
-
channelDisconnected
public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception - Overrides:
channelDisconnectedin classorg.jboss.netty.channel.SimpleChannelHandler- Throws:
Exception
-
messageReceived
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception - Overrides:
messageReceivedin classorg.jboss.netty.channel.SimpleChannelHandler- Throws:
Exception
-
writeRequested
public void writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception - Overrides:
writeRequestedin classorg.jboss.netty.channel.SimpleChannelHandler- Throws:
Exception
-
exceptionCaught
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) throws Exception - Overrides:
exceptionCaughtin classorg.jboss.netty.channel.SimpleChannelHandler- Throws:
Exception
-