Examples of NHttpClientConnectionManager


Examples of org.apache.http.nio.conn.NHttpClientConnectionManager

     *
     * @return an {@link HttpClient}
     */
    public HttpClient build(String name) {
        RequestConfig createHttpParams = createHttpParams();
        final NHttpClientConnectionManager manager = createConnectionManager(registry, name);
        HttpAsyncClientBuilder clientBuilder = new InstrumentedNHttpClientBuilder(metricRegistry, name);
        clientBuilder.setConnectionManager(manager);
        clientBuilder.setDefaultRequestConfig(createHttpParams);
        setStrategiesForClient(clientBuilder);
        CloseableHttpAsyncClient client = clientBuilder.build();
View Full Code Here

Examples of org.apache.http.nio.conn.NHttpClientConnectionManager

        systemProperties = true;
        return this;
    }

    public CloseableHttpAsyncClient build() {
        NHttpClientConnectionManager connManager = this.connManager;
        if (connManager == null) {
            SchemeIOSessionFactory iosessionFactory = this.iosessionFactory;
            if (iosessionFactory == null) {
                SSLContext sslcontext = this.sslcontext;
                if (sslcontext == null) {
View Full Code Here

Examples of org.apache.http.nio.conn.NHttpClientConnectionManager

                        .setSoTimeout( cubeBuilder.getPostTimeout() ) //
                        .setConnectTimeout( cubeBuilder.getConnectionTimeout() ) //
                        .build();

                ConnectingIOReactor ioReactor = new DefaultConnectingIOReactor( ioReactorConfig );
                NHttpClientConnectionManager manager = new PoolingNHttpClientConnectionManager( ioReactor );
                closeableHttpAsyncClient = HttpAsyncClients.custom() //
                    .setConnectionManager( manager ) //
                    .setMaxConnPerRoute( cubeBuilder.getDefaultMaxPerRoute() ) //
                    .setMaxConnTotal( cubeBuilder.getMaxTotalConnections() ) //
                    .setDefaultIOReactorConfig( ioReactorConfig ) //
View Full Code Here

Examples of org.apache.http.nio.conn.NHttpClientConnectionManager

        }
        return s.split(" *, *");
    }

    public CloseableHttpAsyncClient build() {
        NHttpClientConnectionManager connManager = this.connManager;
        if (connManager == null) {
            SchemeIOSessionStrategy sslStrategy = this.sslStrategy;
            if (sslStrategy == null) {
                SSLContext sslcontext = this.sslcontext;
                if (sslcontext == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.