Sending Message to Pipeline without a reference to any Handlers
zx spectrum
webakaunt at gmail.com
Fri Sep 23 08:14:43 EDT 2011
What would be a proper way to send a (downstream) message through Netty
without a reference to a handler, to make sure it will get through all the
handlers? Would that be it:
val channel = bootstrap.getPipelineFactory.getPipeline.getChannel
val messageEvent = new DownstreamMessageEvent(
channel,
new DefaultChannelFuture( channel,
true ),
message,
bootstrap.getOption( "remoteAddress"
).asInstanceOf[InetSocketAddress] )
bootstrap.getPipelineFactory.getPipeline.sendDownstream( messageEvent )
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20110923/b641cfca/attachment.html
More information about the netty-users
mailing list