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

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

Oleg, Thanks for you quick response.

Here is my use case. Our company uses some states in Thread Local (TL). Similar 
to Spring Sleuth if you're familiar. We need to be able to read values from TL 
and pass them on to the server we're calling using async client via Http 
Headers. Also, we log some of these values in EVERY log entry (including 3rd 
parties - not just our own logs) using MDC.
 
For both of the above we need a way to move data from calling Thread TL to the 
thread within the internal thread pool used by apache async client.

Co you see any way to achieve the above using existing APIs?

> 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