类 NettyServerHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelDuplexHandler
-
- com.alibaba.dubbo.remoting.transport.netty4.NettyServerHandler
-
- 所有已实现的接口:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler
@Sharable public class NettyServerHandler extends io.netty.channel.ChannelDuplexHandlerNettyClientHandler
-
-
构造器概要
构造器 构造器 说明 NettyServerHandler(URL url, ChannelHandler handler)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)voiddisconnect(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise future)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)Map<String,Channel>getChannels()voidwrite(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise)
-
-
-
构造器详细资料
-
NettyServerHandler
public NettyServerHandler(URL url, ChannelHandler handler)
-
-
方法详细资料
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- 指定者:
channelActive在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelActive在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- 指定者:
channelInactive在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelInactive在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
disconnect
public void disconnect(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise future) throws Exception- 指定者:
disconnect在接口中io.netty.channel.ChannelOutboundHandler- 覆盖:
disconnect在类中io.netty.channel.ChannelDuplexHandler- 抛出:
Exception
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception- 指定者:
channelRead在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelRead在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
write
public void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise) throws Exception- 指定者:
write在接口中io.netty.channel.ChannelOutboundHandler- 覆盖:
write在类中io.netty.channel.ChannelDuplexHandler- 抛出:
Exception
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception- 指定者:
exceptionCaught在接口中io.netty.channel.ChannelHandler- 指定者:
exceptionCaught在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
exceptionCaught在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
-