| Constructor and Description |
|---|
DefaultFileNutsLock(Path path,
Object lockedObject,
NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkFree() |
TimePeriod |
getDefaultTimePeriod() |
boolean |
isFree() |
void |
lock() |
void |
lockInterruptibly() |
Condition |
newCondition() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
boolean |
tryLock(TimePeriod p) |
boolean |
tryLockImmediately() |
boolean |
tryLockImmediatelyInterruptibly() |
boolean |
tryLockInterruptibly(long time,
TimeUnit unit) |
void |
unlock() |
public DefaultFileNutsLock(Path path, Object lockedObject, NutsSession session)
public TimePeriod getDefaultTimePeriod()
public void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LockInterruptedExceptionpublic void checkFree()
public boolean isFree()
public boolean tryLock(TimePeriod p)
public boolean tryLockInterruptibly(long time,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic boolean tryLockImmediatelyInterruptibly()
throws InterruptedException
InterruptedExceptionpublic boolean tryLockImmediately()
public Condition newCondition()
newCondition in interface LockCopyright © 2021 vpc open source initiative. All rights reserved.