Class IdleConnectionHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(HttpConnection connection)
      Deprecated.
      Registers the given connection with this handler.
      void closeIdleConnections​(long idleTime)
      Deprecated.
      Closes connections that have been idle for at least the given amount of time.
      void remove​(HttpConnection connection)
      Deprecated.
      Removes the given connection from the list of connections to be closed when idle.
      void removeAll()
      Deprecated.
      Removes all connections referenced by this handler.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdleConnectionHandler

        public IdleConnectionHandler()
        Deprecated.
    • Method Detail

      • remove

        public void remove​(HttpConnection connection)
        Deprecated.
        Removes the given connection from the list of connections to be closed when idle.
        Parameters:
        connection -
      • removeAll

        public void removeAll()
        Deprecated.
        Removes all connections referenced by this handler.
      • closeIdleConnections

        public void closeIdleConnections​(long idleTime)
        Deprecated.
        Closes connections that have been idle for at least the given amount of time.
        Parameters:
        idleTime - the minimum idle time, in milliseconds, for connections to be closed