public class GrizzlyAsyncHttpProvider extends Object implements AsyncHttpProvider
AsyncHttpProvider.| Modifier and Type | Class and Description |
|---|---|
static class |
GrizzlyAsyncHttpProvider.BodyHandler |
static class |
GrizzlyAsyncHttpProvider.GracefulCloseEvent
FilterChainEvent to gracefully complete the request-response processing
when Connection is getting closed by the remote host. |
| Constructor and Description |
|---|
GrizzlyAsyncHttpProvider(AsyncHttpClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the current underlying TCP/HTTP connection.
|
protected <T> ListenableFuture<T> |
execute(org.glassfish.grizzly.Connection c,
Request request,
AsyncHandler<T> handler,
com.ning.http.client.providers.grizzly.GrizzlyResponseFuture<T> future,
boolean forceTxContextExist) |
<T> ListenableFuture<T> |
execute(Request request,
AsyncHandler<T> handler)
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> handler)
AsyncHttpProviderAsyncHandler when the response arrive.execute in interface AsyncHttpProviderhandler - an instance of AsyncHandlerListenableFuture of Type T.public void close()
AsyncHttpProviderclose in interface AsyncHttpProviderprotected <T> ListenableFuture<T> execute(org.glassfish.grizzly.Connection c, Request request, AsyncHandler<T> handler, com.ning.http.client.providers.grizzly.GrizzlyResponseFuture<T> future, boolean forceTxContextExist) throws IOException
IOExceptionprotected void initializeTransport(AsyncHttpClientConfig clientConfig)
public static void main(String[] args)
Copyright © 2015. All Rights Reserved.