[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16002536#comment-16002536
 ] 

yair ogen commented on HTTPCLIENT-1826:
---------------------------------------

Oleg,

I was thinking maybe HttpProcessor can help - but I see it is called in the 
main thread and not in the rector thread.

I then tried to extend HttpAsyncRequestExecutor and provide the async client 
builder my own impl which I'll write my code in requestReady method, but I 
don't seem to get the HttpRequest or the HttpContext I sent to the execute 
method on the async client.

IF there is some way to move data from calling thread to reactor thread using 
existing API - that would be best. Does that exist anywhere?

Note: I don't want to do the getHandler code and generateRequest myself - I 
assume that's cpu consuming and should be done once.

Perhaps we can add another API in HttpAsyncRequestExecutor which get the 
request as parameter and that will do the trick?

Your thoughts?

> Async Builder should include setting a ExecutorService
> ------------------------------------------------------
>
>                 Key: HTTPCLIENT-1826
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1826
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>            Reporter: yair ogen
>             Fix For: 5.0 Alpha3
>
>
> Currently you only expose setting ThreadFactory. Not very useful if a user 
> wants to send in a different thread pool altogether.
> We must have an option to pass in thread pools especially if we want this 
> async work to co-exist in the same pool as other tasks.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to