| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the lock instance tends towards fairness, false otherwiseQuery if this lock instance tends to be "fair". |
| public boolean | Returns: true if this lock is held by the current thread, false otherwiseDetermine if this lock is held by the current thread. |
| public boolean |
| isFair | back to summary |
|---|---|
| public boolean isFair() Query if this lock instance tends to be "fair".
| |
| isHeldByCurrentThread | back to summary |
|---|---|
| public boolean isHeldByCurrentThread() Determine if this lock is held by the current thread.
| |
| isLocked | back to summary |
|---|---|
| public boolean isLocked() Determine if this lock is held.
| |