类 NettyHandler
- java.lang.Object
-
- org.jboss.netty.channel.SimpleChannelHandler
-
- com.alibaba.dubbo.remoting.transport.netty.NettyHandler
-
- 所有已实现的接口:
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
-
-
构造器概要
构造器 构造器 说明 NettyHandler(URL url, ChannelHandler handler)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e)
void
channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e)
void
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e)
Map<String,Channel>
getChannels()
void
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)
void
writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)
-
从类继承的方法 org.jboss.netty.channel.SimpleChannelHandler
bindRequested, channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete
-
-
-
-
构造器详细资料
-
NettyHandler
public NettyHandler(URL url, ChannelHandler handler)
-
-
方法详细资料
-
channelConnected
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
- 覆盖:
channelConnected
在类中org.jboss.netty.channel.SimpleChannelHandler
- 抛出:
Exception
-
channelDisconnected
public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
- 覆盖:
channelDisconnected
在类中org.jboss.netty.channel.SimpleChannelHandler
- 抛出:
Exception
-
messageReceived
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception
- 覆盖:
messageReceived
在类中org.jboss.netty.channel.SimpleChannelHandler
- 抛出:
Exception
-
writeRequested
public void writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception
- 覆盖:
writeRequested
在类中org.jboss.netty.channel.SimpleChannelHandler
- 抛出:
Exception
-
-