-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Make HttpTransactionContext#getAsyncHandler public #1135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Could you pls. share how exactly you update the strategy?
|
Yes, that's what we're doing to set the strategy. Then, from within that strategy (on the getThreadPool() method), we need to get the asyncHandler that was sent with the request when calling
since we are sending there the executor where the response has to be processed. |
Is this PR still valid? |
Yes it is. Even if it won't be merged, we need to discuss how to obtain that object through another way. |
OK, I'll let @oleksiys handle this then :) |
Hi @oleksiys we are near to a new release, did you have time to review this PR? Thanks in advance. |
Hi guys, sorry for the delay, I'm currently on vacation. Will check and fix this next week. Thank you! |
Thank you Alexey, We'll wait for you to be back then, enjoy your vacations! Best. |
Hi guys, I want to understand more your usecase. If you need all of these just to set the custom thread pool - there is easier way to do that. |
@oleksiys This was just to pass threadPool yes, which is not available statically. What other approach would you use for this? |
@dfeist do you guys need to set a thread pool per request, or it's per client instance? |
@oleksiys Per-request. It's not there there is a new/different thread pool for each request of course, just that a single client is being reused for multiple 'flows' and each flow has it's own thread-pool, if that makes sense. The options I see are: |
Ok, I merge the pull request. I don't see better way to pass the request related information w/o changing AHC API. |
In our application, we need to access the work manager, since we are using a custom implementation of org.glassfish.grizzly.strategies.AbstractIOStrategy to get the Executor we need.
Making this method public allows us to properly implement that.