ChannelPipeline question
MikeQ
michaelquilleash at hotmail.com
Tue Sep 1 05:37:33 EDT 2009
Hi all,
Quick q about @ChannelPipelineCoverage and setup of handlers.
As far as I can tell when setting up a new pipeline you have a couple of
options.
- Adding handlers using bootstrap.getPipeline()
- I believe in this instance all the handlers are singletons (one shared
by all channels) and must therefore be @ChannelPipelineCoverage("all")
- Adding handlers using a ChannelPipelineFactory
- I believe the ChannelPipelineFactory.getPipeline() is called for each
new channel. The handlers can therefore be one/all depending on whether the
getPipeline() implementation creates a new instance each time (one) or uses
a shared instance (all)
- Adding handlers during execution of another handler
- Similar to ChannelPipelineFactory in that a new instance or shared
instance can be used
If someone could confirm/correct the above that would be useful for my own
understanding.
Cheers.
--
View this message in context: http://n2.nabble.com/ChannelPipeline-question-tp3559391p3559391.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list