Repository navigation
Bootstrap refactor - #594
Conversation
…eate new Clientbootstrap instances from an existing one
|
Just to ensure you have my comments: Yes I test it and it works. |
|
One think that I'm not sure with is the name "ClientBootstrap" as its used on both sides of UDP. Any better suggestions ? |
|
Hmm, not so a specialist of UDP, but it is at least consistent with Netty 3... Now, from Java API, you're right that Socket are names DatagramSocket, with no difference whatever client or server. As the bootstrap is shared for both UDP and TCP in particular, I don't see another name for that that will be consistent. giving something as and then keeping ServerBootstrap and Bootstrap as previously ? |
|
Yeah maybe the best ;) 2012/9/12 Frédéric Brégier [email protected]
|
|
I read also your other comment on ConnectionlessBootstrap from Netty 3. You see now why I say I'm not used to UDP ;-) Now, as I am not enough aware of Netty 4 and in particular UDP support, is it the same than ClientBootstrap or is it another one in Netty 4? If it is not the same, then using the same name than in Netty3 will probably help more the user (in particular from 3 to 4 move). But if they are the same, I see 2 options there:
Again, from my "user" point of view, I would say that keeping if possible some "name" consistency could help migration. On the other end, if the semantic is different, keeping the name could also introduce some bad understanding... So my thoughts are not "gold", but just some thoughts... |
|
@fredericBregier about the UNREGISTERED and CLOSED events.. This is correct as the futures are always notfied before the event is triggered. Its even the same for other operations like bind().. etc |
|
Thanks @normanmaurer ! |
|
@fredericBregier no problem.. I really appreciate your feedback/review |
Motivation: The name of the config param changed when we updated the version Modifications: Use correct name Result: Release works again on window
I refactored the bootstrap code to make it easier to reuse Bootstraps.
It's now for example possible to call for example ClientBootstreap.connect() multiple times and get a new Channel at each call.
This was motivated by #591
@trustin @fredericBregier wdyt ?