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. <br>
<br>Now I just need to implement the state machine. I am really impressed with netty for relieving the developer from so
much tedious work.<br><br>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.<br>
<br>Best regards,<br>Daniel Felix Ferber<br><br><div class="gmail_quote">2010/7/13 Dmitry Voronov <span dir="ltr"><<a href="mailto:dzenmassta@gmail.com">dzenmassta@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello Daniel!<br><br>I use multiple handlers, representing states.<br>Each handler got it's own timers, scheduling and cancelling on pipeline events.<br><br>This scheme fulfills all my needs in stateful bgp conversations for example.<br>
Hope this helps :)<br><font color="#888888"><br>-- <br>Best Regafds,<br>Dmitry J. Voronov</font><div><div></div><div class="h5"><br></div></div></blockquote></div><br>