State machine driven by messages

Daniel Ferber dffforum at gmail.com
Wed Jul 14 08:49:47 EDT 2010


Hi, Thanks for the advices. Yesterday I read more about netty and found that
there is a Executor handler, that takes care of handling a pool of threads
exactly as I described on my previous message to control the state machines.


Now I just need to implement the state machine. I am really impressed with
netty for relieving the developer from so much tedious work.

I was not able to find out how to implement the state machine using
handlers. Would you mind giving some more details, or pointing some place
where I can read more about this approach? On the other side, I believe that
an external state machine not based on handlers might be better, since it
would be easier to to unit tests.

Best regards,
Daniel Felix Ferber

2010/7/13 Dmitry Voronov <dzenmassta at gmail.com>

> Hello Daniel!
>
> I use multiple handlers, representing states.
> Each handler got it's own timers, scheduling and cancelling on pipeline
> events.
>
> This scheme fulfills all my needs in stateful bgp conversations for
> example.
> Hope this helps :)
>
> --
> Best Regafds,
> Dmitry J. Voronov
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20100714/bbafb6ef/attachment.html 


More information about the netty-users mailing list