public class ReentrantLock extends ReentrantLock
| Constructor and Description |
|---|
ReentrantLock(boolean fair)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Thread |
getOwner() |
Collection<Thread> |
getQueuedThreads() |
getHoldCount, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlockpublic ReentrantLock(boolean fair)
fair - Fair lockingpublic Thread getOwner()
getOwner in class ReentrantLockpublic Collection<Thread> getQueuedThreads()
getQueuedThreads in class ReentrantLockCopyright © 2018 JBoss by Red Hat. All rights reserved.