Properly Stopping a Stage

Jean Morissette <[email protected]> Fri, 07 Jan 2005 12:31:41 -0500
Newsgroups gmane.comp.java.seda.user
Message-ID <[email protected]>
Hi,
When a stage is requested to stop, we call Thread.interupt for all 
thread in the ThreadPool after a delay (configurable per stage).

To ensure that no queue events are lost, stopping a stage this way force 
the handler to roll-forward.  Roll-forward is not always desirable; 
suppose that a handler receive 10 elements and that each element take 6 
secondes to process, so stopping this handler could take 60 secondes!

So, I would like that SS provide a way to rollback, in response to a 
stop request.  So, stopping a stage without lossing events could be very 
fast.  But how achieve that?

See http://gee.cs.oswego.edu/dl/cpj/cancel.html for reference on 
rollback and roll-forward.


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt