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

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

Best Java code snippets using org.apache.commons.httpclient.util.IdleConnectionTimeoutThread.setName (Showing top 3 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.setName("Http_Idle_Connection_Timeout_Thread");
long idleConnectionTimeout = Long.parseLong(
    odeConfigurationProperties
origin: org.mule.transports/mule-transport-http

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

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
  • 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.
  • setTimeoutInterval
    Sets the interval used by this class between closing idle connections. Idle connections will be clos
  • interrupt

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Top 17 Free Sublime Text Plugins
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