public abstract class AbstractNLock extends Object implements NLock
| Constructor and Description |
|---|
AbstractNLock() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
callWith(Callable<T> callable) |
<T> NOptional<T> |
callWith(Callable<T> callable,
long time,
TimeUnit unit) |
<T> NOptional<T> |
callWithImmediately(Callable<T> callable) |
protected abstract void |
relock() |
protected abstract void |
reunlock() |
void |
runWith(Runnable runnable) |
boolean |
runWith(Runnable runnable,
long time,
TimeUnit unit) |
boolean |
runWithImmediately(Runnable runnable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisHeldByCurrentThread, isLocked, of, ofId, ofIdPath, ofIdPath, ofPath, ofPathCompanion, ofResourcelock, lockInterruptibly, newCondition, tryLock, tryLock, unlockdescribepublic boolean runWithImmediately(Runnable runnable)
runWithImmediately in interface NLockpublic <T> NOptional<T> callWithImmediately(Callable<T> callable)
callWithImmediately in interface NLockprotected abstract void reunlock()
protected abstract void relock()
Copyright © 2026 vpc open source initiative. All rights reserved.