6b11f7fbc2
Bootstrap methods now return Future<Channel> instead of ChannelFuture Motivation: In #8516 it was proposed to at some point remove the specialised ChannelFuture and ChannelPromise. Or at least make them not extend Future and Promise, respectively. One pain point encountered in this discussion is the need to get access to the channel object after it has been initialised, but without waiting for the channel registration to propagate through the pipeline. Modification: Add a Bootstrap.createUnregistered method, which will return a Channel directly. All other Bootstrap methods that previously returned ChannelFuture now return Future<Channel> Result: It's now possible to obtain an initialised but unregistered channel from a bootstrap, without blocking. And the other bootstrap methods now only release their channels through the result of their futures, preventing racy access to the channels. |
||
---|---|---|
.. | ||
src/main/java/io/netty/testsuite/svm | ||
pom.xml |