Ability to get pipeline before connect using ClientBootstrap
Vadim Berezniker
kryptolus at gmail.com
Tue Apr 20 13:16:29 EDT 2010
I'm rather new to Netty so my understanding may not be up to par, but...
I think it would be nice to be able to get the pipeline before the connect
actually happens.
Right now the pipeline creation via the factory and connect all happen in
one operation so you don't have a chance to do anything.
For example let's say I want to add a custom listener to a non-shared
handler in the pipeline.
The only way to do it would be to either pass it to the factory or have the
factory somehow retrieve it. In both cases it would require to you to write
a mechanism to distinguish which handler is the source of an event.
If one could access the handler before the connect happens, one could easily
add a listener or perform any pipeline specific handling. I guess one way to
do it right now is to have an abstract pipeline factory and set a new
instance right before calling connect, but changing the factory before every
connect seems to defeat the purpose of having a factory...
--
View this message in context: http://n2.nabble.com/Ability-to-get-pipeline-before-connect-using-ClientBootstrap-tp4932376p4932376.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list