congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IdleConnectionTimeoutThread.addConnectionManager
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.wso2.carbon.business-process/org.wso2.carbon.bpel

idleConnectionTimeoutThread.setTimeoutInterval(idleConnectionCheckInterval);
idleConnectionTimeoutThread.addConnectionManager(httpConnectionManager);
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 = new IdleConnectionTimeoutThread();
idleConnectionTimeoutThread.setConnectionTimeout(config.getReadTimeout());
idleConnectionTimeoutThread.addConnectionManager(connectionManager);
idleConnectionTimeoutThread.start();
origin: mguessan/davmail

/**
 * Create and set connection pool.
 *
 * @param httpClient httpClient instance
 */
public static void createMultiThreadedHttpConnectionManager(HttpClient httpClient) {
  MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
  connectionManager.getParams().setDefaultMaxConnectionsPerHost(Settings.getIntProperty("davmail.exchange.maxConnections", 100));
  connectionManager.getParams().setConnectionTimeout(Settings.getIntProperty("davmail.exchange.connectionTimeout", 10) * 1000);
  connectionManager.getParams().setSoTimeout(Settings.getIntProperty("davmail.exchange.soTimeout", 120) * 1000);
  synchronized (LOCK) {
    ALL_CONNECTION_MANAGERS.add(connectionManager);
    httpConnectionManagerThread.addConnectionManager(connectionManager);
  }
  httpClient.setHttpConnectionManager(connectionManager);
}
origin: org.mule.transports/mule-transport-http

connectionCleaner.addConnectionManager(clientConnectionManager);
connectionCleaner.start();
org.apache.commons.httpclient.utilIdleConnectionTimeoutThreadaddConnectionManager

Javadoc

Adds a connection manager to be handled by this class. HttpConnectionManager#closeIdleConnections(long) will be called on the connection manager every #setTimeoutInterval(long) milliseconds.

Popular methods of IdleConnectionTimeoutThread

  • <init>
  • handleCloseIdleConnections
    Handles calling HttpConnectionManager#closeIdleConnections(long)and doing any other cleanup work on
  • 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
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • getContentResolver (Context)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collectors (java.util.stream)
  • JComboBox (javax.swing)
  • JList (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 12 Jupyter Notebook extensions
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