| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | DEBUG
Enable via the property |
| public static final long | DEFAULT_TIMEOUT
The default |
| public static final long | TIMEOUT
The |
| public static final boolean | TRACE_LOCK
Enable via the property |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| public boolean | Returns: true if the lock has been acquired withinmaxwait, otherwise falseMaximum time in ms to wait to acquire the lock. If this value is zero,
the call returns immediately either without being able
to acquire the lock, or with acquiring the lock directly while ignoring any scheduling order. timeout)Blocking until the lock is acquired by this Thread or |
| public void |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG Enable via the property | |
| DEFAULT_TIMEOUT | back to summary |
|---|---|
| public static final long DEFAULT_TIMEOUT The default | |
| TIMEOUT | back to summary |
|---|---|
| public static final long TIMEOUT The
It can be overridden via the system property | |
| TRACE_LOCK | back to summary |
|---|---|
| public static final boolean TRACE_LOCK Enable via the property | |
| isLocked | back to summary |
|---|---|
| public boolean isLocked() Query if locked | |
| lock | back to summary |
|---|---|
| public void lock() throws RuntimeException Blocking until the lock is acquired by this Thread or
| |
| tryLock | back to summary |
|---|---|
| public boolean tryLock(long timeout) throws InterruptedException Blocking until the lock is acquired by this Thread or
| |
| unlock | back to summary |
|---|---|
| public void unlock() throws RuntimeException Release the lock.
| |