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

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Notification (javax.management)
  • JPanel (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