public class WaarpLock extends ReentrantLock
Modifier and Type | Method and Description |
---|---|
void |
lock(long timeout,
TimeUnit timeUnit)
Try to lock within the given limit, but do not raized any exception if
not
locked.
|
void |
unlock() |
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock
public WaarpLock()
public WaarpLock(boolean fair)
fair
- public void lock(long timeout, TimeUnit timeUnit)
timeout
- timeUnit
- public void unlock()
unlock
in interface Lock
unlock
in class ReentrantLock
Copyright © 2009–2020 Waarp. All rights reserved.