|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ProgressAsyncHandler | |
---|---|
com.ning.http.client |
Uses of ProgressAsyncHandler in com.ning.http.client |
---|
Classes in com.ning.http.client that implement ProgressAsyncHandler | |
---|---|
class |
AsyncCompletionHandler<T>
An AsyncHandler augmented with an AsyncCompletionHandler.onCompleted(Response) convenience method which gets called
when the Response has been fully received. |
class |
AsyncCompletionHandlerBase
Simple AsyncHandler of type Response
NOTE: Sending another asynchronous request from an AsyncHandler must be done using
another thread to avoid potential deadlock inside the AsyncHttpProvider
The recommended way is to use the ExecutorService from the AsyncHttpClientConfig :
@Override
public Response onCompleted(Response response) throws Exception
{
asyncHttpClient.getConfig().executorService().execute(new Runnable()
{
public void run()
{
asyncHttpClient.prepareGet(...);
}
});
return response;
}
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |