<br><div class="gmail_quote">On Sat, Mar 6, 2010 at 10:39 PM, infectedrhytms <span dir="ltr">&lt;<a href="mailto:infectedrhythms@hotmail.com">infectedrhythms@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Ok the MemoryAwareThreadPoolExecutor seems to do the trick. Thanks I think I<br>
may right up a simple example cause there is now way I would have figured<br>
this out.<br>
<br>
Just to be clear. Cause I&#39;m still trying to gasp this Chanels, Events etc...<br>
thing...<br>
<br>
With MemoryAwareThreadPoolExecutor will any event fired off in one instance<br>
of MyBusinessHandler() affect the instance of another one. So if I have 3<br>
threads running 3 separate instances of MyBusinessHandler, what ever happens<br>
in one will not affect the other right, only the order of the execution may<br>
not be the same which is fine because who ever finishes faster the better?<br>
<br>
So for instance a close event in 1 BusinessHandler will not affect the other<br>
2?<br>
<font color="#888888">--</font><br></blockquote></div><br>You are correct that when using MemoryAwareThreadPoolExecutor or OrderedMemoryAware..., your messages from different channels will not affect the results (functionally) of the other channels. However, you have to be careful while using MemoryAwareThreadPoolExecutor, as it does not guarantee that the message from a single channel will be raised in the same order that they were received in. Have a look at : <a href="http://www.jboss.org/file-access/default/members/netty/freezone/api/3.1/org/jboss/netty/handler/execution/OrderedMemoryAwareThreadPoolExecutor.html">http://www.jboss.org/file-access/default/members/netty/freezone/api/3.1/org/jboss/netty/handler/execution/OrderedMemoryAwareThreadPoolExecutor.html</a> before proceeding. <br>
<br>HTH,<br><br>Virat<br>