com.alipay.remoting
Class ServerIdleHandler

java.lang.Object
  extended by io.netty.channel.ChannelHandlerAdapter
      extended by io.netty.channel.ChannelInboundHandlerAdapter
          extended by io.netty.channel.ChannelDuplexHandler
              extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
ServerIdleHandler()
           
 
Method Summary
 void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)
           
 
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
 

Constructor Detail

ServerIdleHandler

public ServerIdleHandler()
Method Detail

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.