public class DefaultMemLock extends AbstractNLock
| Constructor and Description |
|---|
DefaultMemLock(Object lockedObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkFree() |
NElement |
describe() |
TimePeriod |
getDefaultTimePeriod() |
boolean |
isFree() |
boolean |
isHeldByCurrentThread() |
boolean |
isLocked() |
void |
lock() |
void |
lockInterruptibly() |
Condition |
newCondition() |
protected void |
relock() |
protected void |
reunlock() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
boolean |
tryLock(TimePeriod p) |
boolean |
tryLockImmediately() |
boolean |
tryLockImmediatelyInterruptibly() |
boolean |
tryLockInterruptibly(long time,
TimeUnit unit) |
void |
unlock() |
callWith, callWith, callWithImmediately, runWith, runWith, runWithImmediatelyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, ofId, ofIdPath, ofIdPath, ofPath, ofPathCompanion, ofResourcepublic DefaultMemLock(Object lockedObject)
public TimePeriod getDefaultTimePeriod()
public void lockInterruptibly()
throws InterruptedException
InterruptedExceptionpublic void lock()
public void checkFree()
public boolean isFree()
public void unlock()
public boolean tryLock()
public boolean tryLock(TimePeriod p)
public boolean tryLock(long time,
TimeUnit unit)
public boolean tryLockInterruptibly(long time,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic boolean tryLockImmediatelyInterruptibly()
throws InterruptedException
InterruptedExceptionpublic boolean isLocked()
public boolean isHeldByCurrentThread()
public boolean tryLockImmediately()
public Condition newCondition()
protected void reunlock()
reunlock in class AbstractNLockprotected void relock()
relock in class AbstractNLockpublic NElement describe()
Copyright © 2026 vpc open source initiative. All rights reserved.