Class IdleConnectionTimeoutThread

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addConnectionManager​(HttpConnectionManager connectionManager)
      Deprecated.
      Adds a connection manager to be handled by this class.
      void removeConnectionManager​(HttpConnectionManager connectionManager)
      Deprecated.
      Removes the connection manager from this class.
      void run()
      Deprecated.
      Closes idle connections.
      void setConnectionTimeout​(long connectionTimeout)
      Deprecated.
      Sets the timeout value to use when testing for idle connections.
      void setTimeoutInterval​(long timeoutInterval)
      Deprecated.
      Sets the interval used by this class between closing idle connections.
      void shutdown()
      Deprecated.
      Stops the thread used to close idle connections.
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 java.lang.Runnable
        Overrides:
        run in class java.lang.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