com.alipay.remoting
Class ServerIdleHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
com.alipay.remoting.ServerIdleHandler
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler
@ChannelHandler.Sharable
public class ServerIdleHandler
- extends io.netty.channel.ChannelDuplexHandler
Server Idle handler.
In the server side, the connection will be closed if it is idle for a certain period of time.
| Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler |
io.netty.channel.ChannelHandler.Sharable |
| Methods inherited from class io.netty.channel.ChannelDuplexHandler |
bind, close, connect, deregister, disconnect, flush, read, write |
| Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter |
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught |
| Methods inherited from class io.netty.channel.ChannelHandlerAdapter |
ensureNotSharable, handlerAdded, handlerRemoved, isSharable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface io.netty.channel.ChannelHandler |
exceptionCaught, handlerAdded, handlerRemoved |
ServerIdleHandler
public ServerIdleHandler()
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
- Specified by:
userEventTriggered in interface io.netty.channel.ChannelInboundHandler- Overrides:
userEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception- See Also:
ChannelInboundHandlerAdapter.userEventTriggered(io.netty.channel.ChannelHandlerContext, java.lang.Object)
Copyright © 2018. All rights reserved.