Package org.apache.http.nio.conn

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


        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

                        .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

        }
        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

Related Classes of org.apache.http.nio.conn.NHttpClientConnectionManager

Copyright © 2018 www.massapicom. 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.