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><br>-- <br>Best Regafds,<br>Dmitry J. Voronov<br><br><br><div class="gmail_quote">On Tue, Jul 13, 2010 at 6:47 AM, Daniel Ferber <span dir="ltr"><<a href="mailto:dffforum@gmail.com">dffforum@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hi,<br>
<br>
I am thinking about a service that consists of a client-server conversation.<br>
I found netty the ideal solution to convert the socket stream to<br>
conversation message objects and back.<br>
<br>
Now I am wondering if there is another complementary framework that would<br>
help me managing the sate of each conversation (the is one conversation for<br>
each connection received by netty).<br>
<br>
I imagine a set o active conversations. A set of worker threads would watch<br>
the set of conversations. If there is a conversation with a pending message<br>
from the client, then a worker thread would take on the conversation and<br>
send a message back to the client. Conversation that remain idle for too<br>
long get killed.<br>
<br>
I would appreciate much any advices about the existence of such<br>
complementary framework, or if I shall implement this from scratch.<br>
<br>
Daniel Felix Ferber<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/State-machine-driven-by-messages-tp5285744p5285744.html" target="_blank">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/State-machine-driven-by-messages-tp5285744p5285744.html</a><br>
Sent from the Netty User Group mailing list archive at Nabble.com.<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</font></blockquote></div><br>