Class SelfReleaseRuntimeManagerLock
- java.lang.Object
-
- org.jbpm.runtime.manager.impl.lock.SelfReleaseRuntimeManagerLock
-
- All Implemented Interfaces:
RuntimeManagerLock
public class SelfReleaseRuntimeManagerLock extends Object implements RuntimeManagerLock
-
-
Constructor Summary
Constructors Constructor Description SelfReleaseRuntimeManagerLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forceUnlock()
int
getQueueLength()
boolean
hasQueuedThreads()
boolean
isHeldByCurrentThread()
void
lock()
void
lockInterruptible()
String
toString()
boolean
tryLock(long units, TimeUnit timeUnit)
void
unlock()
-
-
-
Method Detail
-
lock
public void lock()
- Specified by:
lock
in interfaceRuntimeManagerLock
-
tryLock
public boolean tryLock(long units, TimeUnit timeUnit) throws InterruptedException
- Specified by:
tryLock
in interfaceRuntimeManagerLock
- Throws:
InterruptedException
-
lockInterruptible
public void lockInterruptible() throws InterruptedException
- Specified by:
lockInterruptible
in interfaceRuntimeManagerLock
- Throws:
InterruptedException
-
unlock
public void unlock()
- Specified by:
unlock
in interfaceRuntimeManagerLock
-
forceUnlock
public void forceUnlock()
- Specified by:
forceUnlock
in interfaceRuntimeManagerLock
-
hasQueuedThreads
public boolean hasQueuedThreads()
- Specified by:
hasQueuedThreads
in interfaceRuntimeManagerLock
-
isHeldByCurrentThread
public boolean isHeldByCurrentThread()
- Specified by:
isHeldByCurrentThread
in interfaceRuntimeManagerLock
-
getQueueLength
public int getQueueLength()
- Specified by:
getQueueLength
in interfaceRuntimeManagerLock
-
-