On 12-04-26 1:17 PM, Manik Surtani wrote:

On 26 Apr 2012, at 16:24, Vladimir Blagojevic wrote:

Are we sure ZERO_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?