congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • Menu (java.awt)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 17 Plugins for Android Studio
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