
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, tryLockpublic WaarpLock()
public WaarpLock(boolean fair)
fair - public void lock(long timeout,
TimeUnit timeUnit)
timeout - timeUnit - public void unlock()
unlock in interface Lockunlock in class ReentrantLockCopyright © 2009–2020 Waarp. All rights reserved.