Skip to content

Commit

Permalink
Refactor AsyncHttpClientConfig, close #1003
Browse files Browse the repository at this point in the history
  • Loading branch information
slandelle committed Oct 13, 2015
1 parent fe2a1bc commit 4a4b475
Show file tree
Hide file tree
Showing 63 changed files with 1,405 additions and 1,843 deletions.
4 changes: 2 additions & 2 deletions client/src/main/java/org/asynchttpclient/AsyncHttpClient.java
Expand Up @@ -116,15 +116,15 @@
* Response r = f.get(); * Response r = f.get();
* </pre></blockquote> * </pre></blockquote>
* *
* Finally, you can configure the AsyncHttpClient using an {@link AsyncHttpClientConfig} instance. * Finally, you can configure the AsyncHttpClient using an {@link DefaultAsyncHttpClientConfig} instance.
* <br> * <br>
* <blockquote><pre> * <blockquote><pre>
* AsyncHttpClient c = new AsyncHttpClient(new AsyncHttpClientConfig.Builder().setRequestTimeoutInMs(...).build()); * AsyncHttpClient c = new AsyncHttpClient(new AsyncHttpClientConfig.Builder().setRequestTimeoutInMs(...).build());
* Future&lt;Response&gt; f = c.prepareGet(TARGET_URL).execute(); * Future&lt;Response&gt; f = c.prepareGet(TARGET_URL).execute();
* Response r = f.get(); * Response r = f.get();
* </pre></blockquote> * </pre></blockquote>
* <br> * <br>
* An instance of this class will cache every HTTP 1.1 connections and close them when the {@link AsyncHttpClientConfig#getReadTimeout()} * An instance of this class will cache every HTTP 1.1 connections and close them when the {@link DefaultAsyncHttpClientConfig#getReadTimeout()}
* expires. This object can hold many persistent connections to different host. * expires. This object can hold many persistent connections to different host.
*/ */
public interface AsyncHttpClient extends Closeable { public interface AsyncHttpClient extends Closeable {
Expand Down

0 comments on commit 4a4b475

Please sign in to comment.