Class GrizzlyAsyncHttpProvider
java.lang.Object
com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProvider
- All Implemented Interfaces:
AsyncHttpProvider
A Grizzly 2.0-based implementation of
AsyncHttpProvider.- Since:
- 1.7.0
- Author:
- The Grizzly Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the current underlying TCP/HTTP connection.<T> ListenableFuture<T>execute(Request request, AsyncHandler<T> asyncHandler) Execute the request and invoke theAsyncHandlerwhen the response arrive.protected voidinitializeTransport(AsyncHttpClientConfig clientConfig) static void
-
Constructor Details
-
GrizzlyAsyncHttpProvider
-
-
Method Details
-
execute
Description copied from interface:AsyncHttpProviderExecute the request and invoke theAsyncHandlerwhen the response arrive.- Specified by:
executein interfaceAsyncHttpProviderasyncHandler- an instance ofAsyncHandler- Returns:
- a
ListenableFutureof Type T.
-
close
public void close()Description copied from interface:AsyncHttpProviderClose the current underlying TCP/HTTP connection.- Specified by:
closein interfaceAsyncHttpProvider
-
initializeTransport
-
main
-