acquireAll(Object caller,
long timeout,
LockType lock_type,
boolean excludeInternalFqns)Deprecated. Same as the overloaded acquire(Object, long, LockType) except that you can
optionally specify that internal Fqns - such as buddy backup subtrees - can be excluded when acquiring locks.

boolean

acquireReadLock(Object caller,
long timeout)Deprecated. Acquires a read lock with a timeout period of timeout milliseconds.

boolean

acquireWriteLock(Object caller,
long timeout)Deprecated. Acquires a write lock with a timeout of timeout milliseconds.

acquireWriteLock

Acquires a write lock with a timeout of timeout milliseconds.
Note that if the current owner owns a read lock, it will be upgraded
automatically. However, if upgrade fails, i.e., timeout, the read lock will
be released automatically.

Parameters:

caller - Can't be null.

timeout -

Returns:

boolean True if lock was acquired and was not held before, false if lock was held