-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Issue #10547 - Allow Executor of WebSocketClient to be customized via HttpClient #10548
Conversation
… HttpClient Signed-off-by: Joakim Erdfelt <[email protected]>
...websocket-jetty-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Joakim Erdfelt <[email protected]>
LGTM but please note that the issue was originally reported for Jetty 10.0.x. Don't you want to do this change on the |
This is the |
I could swear I saw this PR made against 12.0.x. Either I dreamt it or GitHub was drunk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just an issue with the the javadoc.
...websocket-jetty-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is good... but I don't like some of pre-existing stuff I see.
I'm not keen on how there is both a ThreadPool and an Executor in the WebSocketComponents.
Ideally we should just pass one and derive the other from it (up or down caste). If they really REALLY can be different, then it needs to be javadoc'd what each is used for and how they relate.
So, whilst only tangential to this PR, can you add some javadoc about that?
Sounds like we need a new Issue about it.
There's only an Executor in WebSocketComponents.
There's an Executor in WebSocketComponents, and an Executor in HttpClient.
That seems complicated and is documenting code / internal behaviors, I don't see that as appropriate for an API doc (once documented, we cannot change the internal behaviors). |
Signed-off-by: Joakim Erdfelt <[email protected]>
2311ac5
I don't understand how to use this class, so the javadoc is for people like me. |
@gregw where do you see threadpool and executor in the same class? |
@gregw I think we never needed to use any methods of In the |
Add ability of WebSocketClient to pull Executor and ByteBufferPool from configured HttpClient