[infinispan-dev] API behaviour when using DIST

Manik Surtani manik at jboss.org
Tue Apr 28 05:18:07 EDT 2009


On 27 Apr 2009, at 21:41, Mircea Markus wrote:

> Manik Surtani wrote:
>> Ok, so this is my final, final solution.  :-)
>>
>> Both sync and async are supported in DIST.  DIST will always do a  
>> get before a write, and this call will be synchronous.  (the actual  
>> write command will be executed remotely either sync or async based  
>> on cache mode).
>>
>> This will ensure proper return values as well as proper behaviour  
>> of conditional invocations such as putIfAbsent, replace, etc.
>>
>> I will still hang on to the <unsafe unreliableReturnValues />  
>> option though, which will apply to both sync and async mode, which  
>> will allow for skipping the get-before-write, but only where this  
>> is unnecessary for accurate functioning of a method.
> what about also allowing this on a per invocation basis, through Flag?

Good idea!  Noted.

Cheers
--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org







More information about the infinispan-dev mailing list