@ChannelHandler.Sharable
public class NioServerHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
| 构造器和说明 |
|---|
NioServerHandler(NioRpcServer nioRpcServer) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object rmsg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
NioRpcServer |
getNioRpcServer() |
void |
setNioRpcServer(NioRpcServer nioRpcServer) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic NioServerHandler(NioRpcServer nioRpcServer)
public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object rmsg)
throws Exception
channelRead 在接口中 io.netty.channel.ChannelInboundHandlerchannelRead 在类中 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.ChannelInboundHandlerAdapterExceptionpublic NioRpcServer getNioRpcServer()
public void setNioRpcServer(NioRpcServer nioRpcServer)
Copyright © 2020. All Rights Reserved.