Tabnine Logo
HttpClientOptions.setLeaseTimeout
Code IndexAdd Tabnine to your IDE (free)

How to use
setLeaseTimeout
method
in
com.atlassian.httpclient.api.factory.HttpClientOptions

Best Java code snippets using com.atlassian.httpclient.api.factory.HttpClientOptions.setLeaseTimeout (Showing top 2 results out of 315)

origin: com.atlassian.plugins/atlassian-connect-core

  private HttpClientOptions getHttpClientOptions() {
    HttpClientOptions options = new HttpClientOptions();
    options.setThreadPrefix("atlassian-connect");
    options.setMaxConnectionsPerHost(100);
    options.setUserAgent("Atlassian-Connect/"
        + pluginRetrievalService.getPlugin().getPluginInformation().getVersion());

    options.setConnectionTimeout(3, TimeUnit.SECONDS);
    options.setSocketTimeout(5, TimeUnit.SECONDS);
    options.setRequestTimeout(10, TimeUnit.SECONDS);
    options.setLeaseTimeout(TimeUnit.SECONDS.toMillis(3));
    return options;
  }
}
origin: com.atlassian.plugins/atlassian-connect-server-core

  private HttpClientOptions getHttpClientOptions() {
    HttpClientOptions options = new HttpClientOptions();

    options.setThreadPrefix("atlassian-connect");
    options.setMaxConnectionsPerHost(productAccessor.getMaxHttpConnectionsPerHost());
    options.setUserAgent("Atlassian-Connect/"
        + pluginRetrievalService.getPlugin().getPluginInformation().getVersion());

    options.setConnectionTimeout(productAccessor.getHttpConnectionTimeoutSeconds(), TimeUnit.SECONDS);
    options.setSocketTimeout(productAccessor.getHttpSocketTimeoutSeconds(), TimeUnit.SECONDS);
    options.setRequestTimeout(productAccessor.getHttpRequestTimeoutSeconds(), TimeUnit.SECONDS);
    options.setLeaseTimeout(TimeUnit.SECONDS.toMillis(productAccessor.getPluginHttpLeaseTimeoutSeconds()));
    return options;
  }
}
com.atlassian.httpclient.api.factoryHttpClientOptionssetLeaseTimeout

Popular methods of HttpClientOptions

  • <init>
  • setSocketTimeout
  • getThreadPrefix
  • setConnectionTimeout
    Sets how long, in milliseconds, to wait for a TCP connection
  • setRequestTimeout
  • getCallbackExecutor
  • getConnectionPoolTimeToLive
  • getConnectionTimeout
  • getIoSelectInterval
    Determines time interval in milliseconds at which the I/O reactor wakes up to check for timed out se
  • getIoThreadCount
    Determines the number of I/O dispatch threads to be used by the I/O reactor. Default: 10
  • getLeaseTimeout
  • getMaxConnectionsPerHost
  • getLeaseTimeout,
  • getMaxConnectionsPerHost,
  • getMaxEntitySize,
  • getRequestPreparer,
  • getSocketTimeout,
  • getUserAgent,
  • setMaxConnectionsPerHost,
  • setThreadPrefix,
  • getIgnoreCookies,
  • getMaxCacheEntries

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Table (org.hibernate.mapping)
    A relational table
  • Top Sublime Text plugins
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