@Service(value="userHandler")
public class UserHandler
extends io.netty.channel.SimpleChannelInboundHandler<java.lang.String>
构造器和说明 |
---|
UserHandler() |
限定符和类型 | 方法和说明 |
---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx)
channel被激活时调用
|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
close() |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
void |
sendMsg(java.lang.String str) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt) |
public void close()
public void sendMsg(java.lang.String str)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive
在接口中 io.netty.channel.ChannelInboundHandler
channelActive
在类中 io.netty.channel.ChannelInboundHandlerAdapter
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception
channelInactive
在接口中 io.netty.channel.ChannelInboundHandler
channelInactive
在类中 io.netty.channel.ChannelInboundHandlerAdapter
java.lang.Exception
public void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception
handlerRemoved
在接口中 io.netty.channel.ChannelHandler
handlerRemoved
在类中 io.netty.channel.ChannelHandlerAdapter
java.lang.Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
exceptionCaught
在接口中 io.netty.channel.ChannelHandler
exceptionCaught
在接口中 io.netty.channel.ChannelInboundHandler
exceptionCaught
在类中 io.netty.channel.ChannelInboundHandlerAdapter
java.lang.Exception
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object evt) throws java.lang.Exception
userEventTriggered
在接口中 io.netty.channel.ChannelInboundHandler
userEventTriggered
在类中 io.netty.channel.ChannelInboundHandlerAdapter
java.lang.Exception