java.util.concurrent.locks.LockSpinLockpublic interface ExtendedLock
extends java.util.concurrent.locks.Lock
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isFair() |
Query if this lock instance tends to be "fair".
|
boolean |
isHeldByCurrentThread() |
Determine if this lock is held by the current thread.
|
boolean |
isLocked() |
Determine if this lock is held.
|
boolean isLocked()
true if this lock is held, false otherwiseboolean isHeldByCurrentThread()
true if this lock is held by the current thread, false otherwiseboolean isFair()
true if the lock instance tends towards fairness, false otherwiseCopyright © 2018 JBoss, a division of Red Hat, Inc.