Tabnine Logo
IdleConnectionTimeoutThread.start
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: mguessan/davmail

/**
 * Create and start a new HttpConnectionManager, close idle connections every minute.
 */
public static void start() {
  synchronized (LOCK) {
    if (httpConnectionManagerThread == null) {
      httpConnectionManagerThread = new IdleConnectionTimeoutThread();
      httpConnectionManagerThread.setName(IdleConnectionTimeoutThread.class.getSimpleName());
      httpConnectionManagerThread.setConnectionTimeout(ONE_MINUTE);
      httpConnectionManagerThread.setTimeoutInterval(ONE_MINUTE);
      httpConnectionManagerThread.start();
    }
  }
}
origin: org.wso2.carbon.business-process/org.wso2.carbon.bpel

idleConnectionTimeoutThread.start();
origin: boyuanitsm/pay

/**
 * 私有的构造方法
 */
private HttpProtocolHandler() {
  // 创建一个线程安全的HTTP连接池
  connectionManager = new MultiThreadedHttpConnectionManager();
  connectionManager.getParams().setDefaultMaxConnectionsPerHost(defaultMaxConnPerHost);
  connectionManager.getParams().setMaxTotalConnections(defaultMaxTotalConn);
  IdleConnectionTimeoutThread ict = new IdleConnectionTimeoutThread();
  ict.addConnectionManager(connectionManager);
  ict.setConnectionTimeout(defaultIdleConnTimeout);
  ict.start();
}
origin: io.gatling/async-http-client

idleConnectionTimeoutThread.setConnectionTimeout(config.getReadTimeout());
idleConnectionTimeoutThread.addConnectionManager(connectionManager);
idleConnectionTimeoutThread.start();
origin: org.mule.transports/mule-transport-http

connectionCleaner.setName("HttpClient-connection-cleaner-" + getName());
connectionCleaner.addConnectionManager(clientConnectionManager);
connectionCleaner.start();
org.apache.commons.httpclient.utilIdleConnectionTimeoutThreadstart

Popular methods of IdleConnectionTimeoutThread

  • <init>
  • addConnectionManager
    Adds a connection manager to be handled by this class. HttpConnectionManager#closeIdleConnections(lo
  • handleCloseIdleConnections
    Handles calling HttpConnectionManager#closeIdleConnections(long)and doing any other cleanup work on
  • setDaemon
  • 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

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Reference (javax.naming)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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