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

Vladimir Blagojevic vblagoje at redhat.com
Thu Apr 26 13:52:12 EDT 2012


On 12-04-26 1:17 PM, Manik Surtani wrote:
>
> On 26 Apr 2012, at 16:24, Vladimir Blagojevic wrote:
>
>>>
>>> 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 sureZERO_LOCK_ACQUISITION_TIMEOUT is the best way to name this 
>> flag ? Maybe that is why people can not find it :-(
>
> What would you call it?  ;)
>
Maybe TRY_LOCK or LOCK_IF_UNCONTENDED but I would not change current 
name and cause additional problems. Why don't we add tryLock() and 
tryLock(long time, TimeUnit unit) signatures. My cursory checks of the 
codebase indicate that all of the infrastructure is already in place, right?


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


More information about the infinispan-dev mailing list