[infinispan-dev] Command cancellation

Manik Surtani manik at jboss.org
Mon Sep 24 06:46:34 EDT 2012


On 24 Sep 2012, at 11:39, Vladimir Blagojevic <vblagoje at redhat.com> wrote:

> On 12-09-21 2:34 PM, Manik Surtani wrote:
>> Looks good, except that the pseudocode for dealing with a CancellableCommand (on the recipient node) should look like:
>> 
>> * Receive command
>> * if CancellableCommand, register with CancellationService
>> * Perform command
>> * If CancellableCommand, un-register from CancellationService
>> 
>> That last step was missing from your detail below.  I presume that would require a CancellationService#unregisterThread(UUID u) ?
>> 
> I was looking at the most appropriate place for this logic and I think InboundInvocationHandlerImpl#handleInternal method and its try/catch/finally clause fits the bill, would you agree?

I believe so, yes.

--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Platform Architect, JBoss Data Grid
http://red.ht/data-grid

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20120924/c4e9e45f/attachment-0001.html 


More information about the infinispan-dev mailing list