Package io.airlift.http.client.netty

Examples of io.airlift.http.client.netty.NettyIoPoolConfig


        }

        @Override
        public NettyIoPool get()
        {
            NettyIoPoolConfig config = injector.getInstance(keyFromNullable(NettyIoPoolConfig.class, annotation));
            NettyIoPool pool = new NettyIoPool(name, config);
            pools.add(pool);
            return pool;
        }
View Full Code Here


        this.httpClient = new StandaloneNettyAsyncHttpClient("jdbc",
                new HttpClientConfig()
                        .setConnectTimeout(new Duration(10, TimeUnit.SECONDS))
                        .setSocksProxy(socksProxy),
                new NettyAsyncHttpClientConfig(),
                new NettyIoPoolConfig(),
                ImmutableSet.of(new UserAgentRequestFilter(userAgent)));
    }
View Full Code Here

TOP

Related Classes of io.airlift.http.client.netty.NettyIoPoolConfig

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.