public class GrizzlyAsyncHttpProvider extends Object implements AsyncHttpProvider
AsyncHttpProvider
.Constructor and Description |
---|
GrizzlyAsyncHttpProvider(AsyncHttpClientConfig clientConfig) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the current underlying TCP/HTTP connection.
|
<T> ListenableFuture<T> |
execute(Request request,
AsyncHandler<T> asyncHandler)
Execute the request and invoke the
AsyncHandler when the response arrive. |
protected void |
initializeTransport(AsyncHttpClientConfig clientConfig) |
static void |
main(String[] args) |
public GrizzlyAsyncHttpProvider(AsyncHttpClientConfig clientConfig)
public <T> ListenableFuture<T> execute(Request request, AsyncHandler<T> asyncHandler)
AsyncHttpProvider
AsyncHandler
when the response arrive.execute
in interface AsyncHttpProvider
asyncHandler
- an instance of AsyncHandler
ListenableFuture
of Type T.public void close()
AsyncHttpProvider
close
in interface AsyncHttpProvider
protected void initializeTransport(AsyncHttpClientConfig clientConfig)
public static void main(String[] args)
Copyright © 2015. All Rights Reserved.