public abstract class AbstractNLock extends Object implements net.thevpc.nuts.concurrent.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, unlockpublic void runWith(Runnable runnable)
runWith in interface net.thevpc.nuts.concurrent.NLockpublic <T> T callWith(Callable<T> callable)
callWith in interface net.thevpc.nuts.concurrent.NLockpublic boolean runWithImmediately(Runnable runnable)
runWithImmediately in interface net.thevpc.nuts.concurrent.NLockpublic boolean runWith(Runnable runnable, long time, TimeUnit unit)
runWith in interface net.thevpc.nuts.concurrent.NLockpublic <T> NOptional<T> callWithImmediately(Callable<T> callable)
callWithImmediately in interface net.thevpc.nuts.concurrent.NLockpublic <T> NOptional<T> callWith(Callable<T> callable, long time, TimeUnit unit)
callWith in interface net.thevpc.nuts.concurrent.NLockprotected abstract void reunlock()
protected abstract void relock()
Copyright © 2025 vpc open source initiative. All rights reserved.