The Lock type exposes the following members.

Fields

  NameDescription
Protected fieldfailureReason
If a lock obtain called, this failureReason may be set with the "root cause" Exception as to why the lock was not obtained.
Public fieldStatic memberLOCK_OBTAIN_WAIT_FOREVER
Pass this value to {@link #Obtain(long)} to try forever to obtain the lock.
Public fieldStatic memberLOCK_POLL_INTERVAL
How long {@link #Obtain(long)} waits, in milliseconds, in between attempts to acquire the lock.

See Also