Codota Logo
HttpConfig.getDefaultKeepAliveMillis
Code IndexAdd Codota to your IDE (free)

How to use
getDefaultKeepAliveMillis
method
in
com.hubspot.horizon.HttpConfig

Best Java code snippets using com.hubspot.horizon.HttpConfig.getDefaultKeepAliveMillis (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: com.hubspot/HorizonApache

public ApacheHttpClient(HttpConfig config) {
 Preconditions.checkNotNull(config);
 HttpClientBuilder builder = HttpClientBuilder.create();
 builder.setConnectionManager(createConnectionManager(config));
 builder.setRedirectStrategy(new LenientRedirectStrategy());
 builder.setKeepAliveStrategy(new KeepAliveWithDefaultStrategy(config.getDefaultKeepAliveMillis()));
 builder.addInterceptorFirst(new DefaultHeadersRequestInterceptor(config));
 builder.addInterceptorFirst(new SnappyContentEncodingResponseInterceptor());
 builder.setDefaultRequestConfig(createRequestConfig(config));
 builder.setDefaultSocketConfig(createSocketConfig(config));
 builder.disableContentCompression();
 this.apacheClient = builder.build();
 this.requestConverter = new ApacheHttpRequestConverter(config.getObjectMapper());
 this.config = config;
 this.defaultOptions = config.getOptions();
 this.timer = new Timer("http-request-timeout", true);
}
com.hubspot.horizonHttpConfiggetDefaultKeepAliveMillis

Popular methods of HttpConfig

  • newBuilder
  • getConnectTimeoutMillis
  • getMaxConnections
  • getMaxConnectionsPerHost
  • getMaxRedirects
  • getObjectMapper
  • getOptions
  • getRequestTimeoutMillis
  • getSSLConfig
  • getUserAgent
  • isFollowRedirects
  • <init>
  • isFollowRedirects,
  • <init>,
  • isRejectRelativeRedirects

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JList (javax.swing)
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now