If the lock is not available then the current thread doesn't wait and returns false immediately.
Warning:
This method uses hashCode and equals of binary form of the key, not the actual implementations of hashCode and equals defined in key's class. @param key key to lock. @return true if lock is acquired, false otherwise. @throws NullPointerException if the specified key is null
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|