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

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

Best Java code snippets using com.hubspot.horizon.HttpConfig.newBuilder (Showing top 6 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: HubSpot/Singularity

@Override
protected void configure() {
 ObjectMapper objectMapper = JavaUtils.newObjectMapper();
 Builder httpConfigBuilder = HttpConfig.newBuilder().setObjectMapper(objectMapper);
 bind(ObjectMapper.class).annotatedWith(Names.named(MESOS_CLIENT_OBJECT_MAPPER)).toInstance(objectMapper);
 bind(HttpClient.class).annotatedWith(Names.named(SingularityMesosClient.DEFAULT_HTTP_CLIENT_NAME))
   .toInstance(new NingHttpClient(httpConfigBuilder.build()));
 bind(HttpClient.class).annotatedWith(Names.named(SingularityMesosClient.SHORT_TIMEOUT_HTTP_CLIENT_NAME))
   .toInstance(new NingHttpClient(httpConfigBuilder.setRequestTimeoutSeconds(MESOS_CLIENT_HTTP_SHORT_TIMEOUT_SECONDS).build()));
 bind(MesosClient.class).to(SingularityMesosClient.class).in(Scopes.SINGLETON);
}
origin: HubSpot/Singularity

@Override
protected void configure() {
 ObjectMapper objectMapper = JavaUtils.newObjectMapper();
 objectMapper.registerModule(new GuavaModule());
 objectMapper.registerModule(new Jdk8Module());
 HttpClient httpClient = new NingHttpClient(httpConfig.or(HttpConfig.newBuilder().setObjectMapper(objectMapper).build()));
 bind(HttpClient.class).annotatedWith(Names.named(HTTP_CLIENT_NAME)).toInstance(httpClient);
 bind(SingularityClient.class).toProvider(SingularityClientProvider.class).in(Scopes.SINGLETON);
 if (hosts != null) {
  bindHosts(binder()).toInstance(hosts);
 }
}
origin: com.hubspot/HorizonNing

public NingHttpClient() {
 this(HttpConfig.newBuilder().build());
}
origin: com.hubspot/HorizonApache

public ApacheHttpClient() {
 this(HttpConfig.newBuilder().build());
}
origin: com.hubspot/HorizonNing

public NingAsyncHttpClient() {
 this(HttpConfig.newBuilder().build());
}
origin: HubSpot/Baragon

@Override
protected void configure() {
 HttpClient httpClient = new NingHttpClient(HttpConfig.newBuilder()
     .setObjectMapper(buildObjectMapper())
     .build());
 bind(HttpClient.class).annotatedWith(Names.named(HTTP_CLIENT_NAME)).toInstance(httpClient);
 bind(BaragonServiceClient.class).toProvider(BaragonClientProvider.class).in(Scopes.SINGLETON);
 if (hosts != null) {
  bindHosts(binder()).toInstance(hosts);
 }
}
com.hubspot.horizonHttpConfignewBuilder

Popular methods of HttpConfig

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

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
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