Class IdleConnectionTimeoutThread

    • Constructor Detail

      • IdleConnectionTimeoutThread

        public IdleConnectionTimeoutThread()
        Deprecated.
    • Method Detail

      • removeConnectionManager

        public void removeConnectionManager​(HttpConnectionManager connectionManager)
        Deprecated.
        Removes the connection manager from this class. The idle connections from the connection manager will no longer be automatically closed by this class.
        Parameters:
        connectionManager - The connection manager to remove
      • run

        public void run()
        Deprecated.
        Closes idle connections.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • shutdown

        public void shutdown()
        Deprecated.
        Stops the thread used to close idle connections. This class cannot be used once shutdown.
      • setConnectionTimeout

        public void setConnectionTimeout​(long connectionTimeout)
        Deprecated.
        Sets the timeout value to use when testing for idle connections.
        Parameters:
        connectionTimeout - The connection timeout in milliseconds
        See Also:
        HttpConnectionManager.closeIdleConnections(long)
      • setTimeoutInterval

        public void setTimeoutInterval​(long timeoutInterval)
        Deprecated.
        Sets the interval used by this class between closing idle connections. Idle connections will be closed every timeoutInterval milliseconds.
        Parameters:
        timeoutInterval - The timeout interval in milliseconds