hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shushant Arora <shushantaror...@gmail.com>
Subject Re: http async client retry logic
Date Tue, 28 Jul 2015 12:12:11 GMT
Thanks.

Can you explain how many threads are used for callbacks when I print thread
name in callbacks . It prints I/O dispatcher 2 (1 to 8) for completed
and namepool-1-thread-1 for failed callbacks . Does it internally use 8
threads for handling callbacks or is it dynamic based on some calculation
and can be overriden?

On Tue, Jul 28, 2015 at 4:55 PM, Oleg Kalnichevski <olegk@apache.org> wrote:

> On Tue, 2015-07-28 at 16:54 +0530, Shushant Arora wrote:
> > Hi
> >
> > I am using org.apache.http.impl.nio.client.CloseableHttpAsyncClient
> > (httpasyncclient-4.1.jar).
> >
> > In callbackof httpGet Request i.e FutureCallback<HttpResponse> there are
> 3
> > methods but no way to get the request context for which reponse came.
> >
> > How can I get the request url of this reponse or some identifier to retry
> > the request?
> >
> > Thanks
>
>
> Nothing stops you from passing whatever context your callback requires
> at construction time.
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message