Class ForceCloseOnWriteTimeoutHandler

  • All Implemented Interfaces:,

    public class ForceCloseOnWriteTimeoutHandler
    extends io.netty.handler.timeout.WriteTimeoutHandler
    If a remote peer is unresponsive due to CPU throttling, GC or otherwise, ForceCloseOnWriteTimeoutHandler closes the connection on write timeout, the time out by default is 30 sec. A close is first attempted on the connection, and is force closed after 5 sec.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void writeTimedOut​( ctx)  
      • Methods inherited from class io.netty.handler.timeout.WriteTimeoutHandler

        handlerRemoved, write
      • Methods inherited from class

        bind, close, connect, deregister, disconnect, flush, read
      • Methods inherited from class

        ensureNotSharable, exceptionCaught, handlerAdded, isSharable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface

        exceptionCaught, handlerAdded
    • Constructor Detail

      • ForceCloseOnWriteTimeoutHandler

        public ForceCloseOnWriteTimeoutHandler​(int timeoutSeconds)
    • Method Detail

      • writeTimedOut

        protected void writeTimedOut​( ctx)
                              throws java.lang.Exception
        writeTimedOut in class io.netty.handler.timeout.WriteTimeoutHandler