public class JDKAsyncHttpProvider extends Object implements AsyncHttpProvider
| Constructor and Description |
|---|
JDKAsyncHttpProvider(AsyncHttpClientConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the current underlying TCP/HTTP connection.
|
<T> ListenableFuture<T> |
execute(Request request,
AsyncHandler<T> handler)
Execute the request and invoke the
AsyncHandler when the response arrive. |
public JDKAsyncHttpProvider(AsyncHttpClientConfig config)
public <T> ListenableFuture<T> execute(Request request, AsyncHandler<T> handler)
AsyncHttpProviderAsyncHandler when the response arrive.execute in interface AsyncHttpProviderhandler - an instance of AsyncHandlerListenableFuture of Type T.public void close()
AsyncHttpProviderclose in interface AsyncHttpProviderCopyright © 2014. All Rights Reserved.