Example usage for io.vertx.core.http HttpClientOptions setMaxPoolSize

List of usage examples for io.vertx.core.http HttpClientOptions setMaxPoolSize

Introduction

In this page you can find the example usage for io.vertx.core.http HttpClientOptions setMaxPoolSize.

Prototype

public HttpClientOptions setMaxPoolSize(int maxPoolSize) 

Source Link

Document

Set the maximum pool size for connections

Usage

From source file:org.apache.servicecomb.transport.rest.client.RestTransportClient.java

License:Apache License

private static HttpClientOptions createHttpClientOptions() {
    HttpClientOptions httpClientOptions = new HttpClientOptions();
    httpClientOptions.setMaxPoolSize(TransportClientConfig.getConnectionMaxPoolSize());
    httpClientOptions.setIdleTimeout(TransportClientConfig.getConnectionIdleTimeoutInSeconds());
    httpClientOptions.setKeepAlive(TransportClientConfig.getConnectionKeepAlive());
    httpClientOptions.setTryUseCompression(TransportClientConfig.getConnectionCompression());

    VertxTLSBuilder.buildHttpClientOptions(SSL_KEY, httpClientOptions);
    return httpClientOptions;
}