Package org.jbpm.runtime.manager.spi
Interface RuntimeManagerLock
-
- All Known Implementing Classes:
DebugRuntimeManagerLock
,DefaultRuntimeManagerLock
,SelfReleaseRuntimeManagerLock
public interface RuntimeManagerLock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
forceUnlock()
int
getQueueLength()
boolean
hasQueuedThreads()
boolean
isHeldByCurrentThread()
void
lock()
void
lockInterruptible()
boolean
tryLock(long units, TimeUnit milliseconds)
void
unlock()
-
-
-
Method Detail
-
lock
void lock()
-
tryLock
boolean tryLock(long units, TimeUnit milliseconds) throws InterruptedException
- Throws:
InterruptedException
-
lockInterruptible
void lockInterruptible() throws InterruptedException
- Throws:
InterruptedException
-
unlock
void unlock()
-
hasQueuedThreads
boolean hasQueuedThreads()
-
isHeldByCurrentThread
boolean isHeldByCurrentThread()
-
getQueueLength
int getQueueLength()
-
forceUnlock
default void forceUnlock()
-
-