[infinispan-dev] Time for a tryLock() ?

Vladimir Blagojevic vblagoje at redhat.com
Thu Apr 26 11:24:31 EDT 2012


On 12-04-26 8:09 AM, Manik Surtani wrote:
>
> On 26 Apr 2012, at 13:05, Dan Berindei wrote:
>
>> What seems to be missing is an overload with a custom timeout, it may
>> be useful to try locking with a shorter timeout in the first attempt
>> (maybe even 0?) like we do for deadlock detection.
>
> There is a flag for that.
>
> https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/context/Flag.java#L79
>
Are we sure ZERO_LOCK_ACQUISITION_TIMEOUT is the best way to name this 
flag ? Maybe that is why people can not find it :-(


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


More information about the infinispan-dev mailing list