congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IdleConnectionTimeoutThread.handleCloseIdleConnections
Code IndexAdd Tabnine to your IDE (free)

How to use
handleCloseIdleConnections
method
in
org.apache.commons.httpclient.util.IdleConnectionTimeoutThread

Best Java code snippets using org.apache.commons.httpclient.util.IdleConnectionTimeoutThread.handleCloseIdleConnections (Showing top 5 results out of 315)

origin: commons-httpclient/commons-httpclient

/**
 * Closes idle connections.
 */
public synchronized void run() {
  while (!shutdown) {
    Iterator iter = connectionManagers.iterator();
    
    while (iter.hasNext()) {
      HttpConnectionManager connectionManager = (HttpConnectionManager) iter.next();
      handleCloseIdleConnections(connectionManager);
    }
    
    try {
      this.wait(timeoutInterval);
    } catch (InterruptedException e) {
    }
  }
  // clear out the connection managers now that we're shutdown
  this.connectionManagers.clear();
}

origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Closes idle connections.
 */
public synchronized void run() {
  while (!shutdown) {
    Iterator iter = connectionManagers.iterator();
    
    while (iter.hasNext()) {
      HttpConnectionManager connectionManager = (HttpConnectionManager) iter.next();
      handleCloseIdleConnections(connectionManager);
    }
    
    try {
      this.wait(timeoutInterval);
    } catch (InterruptedException e) {
    }
  }
  // clear out the connection managers now that we're shutdown
  this.connectionManagers.clear();
}

origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Closes idle connections.
 */
public synchronized void run() {
  while (!shutdown) {
    Iterator iter = connectionManagers.iterator();
    
    while (iter.hasNext()) {
      HttpConnectionManager connectionManager = (HttpConnectionManager) iter.next();
      handleCloseIdleConnections(connectionManager);
    }
    
    try {
      this.wait(timeoutInterval);
    } catch (InterruptedException e) {
    }
  }
  // clear out the connection managers now that we're shutdown
  this.connectionManagers.clear();
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Closes idle connections.
 */
public synchronized void run() {
  while (!shutdown) {
    Iterator iter = connectionManagers.iterator();
    
    while (iter.hasNext()) {
      HttpConnectionManager connectionManager = (HttpConnectionManager) iter.next();
      handleCloseIdleConnections(connectionManager);
    }
    
    try {
      this.wait(timeoutInterval);
    } catch (InterruptedException e) {
    }
  }
  // clear out the connection managers now that we're shutdown
  this.connectionManagers.clear();
}

origin: org.apache.commons/httpclient

/**
 * Closes idle connections.
 */
public synchronized void run() {
  while (!shutdown) {
    Iterator iter = connectionManagers.iterator();
    
    while (iter.hasNext()) {
      HttpConnectionManager connectionManager = (HttpConnectionManager) iter.next();
      handleCloseIdleConnections(connectionManager);
    }
    
    try {
      this.wait(timeoutInterval);
    } catch (InterruptedException e) {
    }
  }
  // clear out the connection managers now that we're shutdown
  this.connectionManagers.clear();
}

org.apache.commons.httpclient.utilIdleConnectionTimeoutThreadhandleCloseIdleConnections

Javadoc

Handles calling HttpConnectionManager#closeIdleConnections(long)and doing any other cleanup work on the given connection mangaer.

Popular methods of IdleConnectionTimeoutThread

  • <init>
  • addConnectionManager
    Adds a connection manager to be handled by this class. HttpConnectionManager#closeIdleConnections(lo
  • setDaemon
  • start
  • setConnectionTimeout
    Sets the timeout value to use when testing for idle connections.
  • shutdown
    Stops the thread used to close idle connections. This class cannot be used once shutdown.
  • setName
  • setTimeoutInterval
    Sets the interval used by this class between closing idle connections. Idle connections will be clos
  • interrupt

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ImageIO (javax.imageio)
  • JButton (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now