Preserving channel events order without using an ExecutionHandler
"이희승 (Trustin Lee)"
trustin at gmail.com
Mon Nov 8 07:25:07 EST 2010
If there is no ExecutionHandler in a pipeline, the event order should be
always correct. It's only when an ExecutionHandler exists in a pipeline
you have to worry about event order.
HTH,
Trustin
Bill Brochuwski wrote:
> Thanks a lot, like you say "a bit after", but really appreciated,
>
> I'm happy with your response since I really prefer not using an
> ExecutionHandler
> and still preserve channel's events order. And like you say I can use
> channel.setReadable(false) for more lengthy processing.
>
> So the following is OK?
> serverBootstrap =
> new ServerBootstrap(
> new NioServerSocketChannelFactory(
> Executors.newCachedThreadPool(),
> Executors.newCachedThreadPool(),
> workerCount));
> with NO ExecutionHandler in my pipeline.
>
>
> But still, in my other post
> "ExecutionHandler in pipeline does not forward client disconnected
> event",
> mlaverd answered me:
> "I think you need to put the handler that guarantees ordering of events."
>
> "client diconnnection" not being forwarded to my business logic is another
> reason why
> I don't whant to use an ExecutionHandler.
>
> So who is right? "Should I stay or should I go?"
>
> Thanks again.
>
>
>
--
Trustin Lee - http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 290 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20101108/06949a9d/attachment.bin
More information about the netty-users
mailing list