[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Kalnichevski reopened HTTPCLIENT-1826:
-------------------------------------------

Yair,
I am not quite sure I understand what it is exactly you are trying to achieve 
here. A custom thread factory enables you to put threads into a particular 
thread group, which in turn enables you to enumerate threads in the group, 
interrupt them as a group and so on. 

The I/O reactor used internally by HttpAsyncClient spans threads and manages 
their life-cycle based on its own design and configuration. For example, 
passing a pool of three threads to an I/O reactor that will attempt to spawn 
four threads is unlikely to do any good.

Oleg    

> 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