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, unlock
public ReentrantLock(boolean fair)
fair
- Fair lockingpublic Thread getOwner()
getOwner
in class ReentrantLock
public Collection<Thread> getQueuedThreads()
getQueuedThreads
in class ReentrantLock
Copyright © 2018 JBoss by Red Hat. All rights reserved.