JEP 110 HTTP 2 client API
pavel.rappo at oracle.com
Fri Apr 3 13:20:12 UTC 2015
I assume your questions are all about WebSocket part, right? If so, then
> Would it possible to add a connect timeout parameter.
> builder.setConnectTimeout(long timeout, TimeUnit unit)
> For some reason it was left out of the javax.websocket API. And working
> around it is a serious PITA.
What's the purpose of this timeout? Could you please explain it a bit more?
> Rename Websocket to WebsocketClient to avoid people thinking you can use it
> server side?
I would also change following methods' names:
as they create a _builder_, not a WebSocket, which a bit misleading in my
> How is the threading done for something like asynchronous connect?
Let's wait for Michael to reply. But I suppose it'll be a non-blocking
selector-based nio thing running by worker threads from
(I might be mistaken)
> I find the use of byte vs ByteBuffer a bit inconsistent.
> For example, HttpResponseBodyProcessor uses ByteBuffer while
> WebSocketMessage uses byte
I believe this is done solely for simplicity. HttpClient is a more "general
purpose" kind of thing.
More information about the core-libs-dev