public class HttpClientPool extends Object
Constructor and Description |
---|
HttpClientPool(String host,
Integer timeout) |
HttpClientPool(String host,
Integer timeout,
Integer minSize,
Integer maxSize) |
Modifier and Type | Method and Description |
---|---|
HttpClient |
getHttpClient() |
HttpClient |
getHttpClient(long timeout,
TimeUnit timeUnit) |
ObjectPool<HttpClient> |
getPool() |
void |
restitution(HttpClient httpClient) |
public HttpClientPool(String host, Integer timeout, Integer minSize, Integer maxSize)
public ObjectPool<HttpClient> getPool()
public HttpClient getHttpClient(long timeout, TimeUnit timeUnit) throws TimeoutException
TimeoutException
public HttpClient getHttpClient()
public void restitution(HttpClient httpClient)
Copyright © 2020 Voovan. All rights reserved.