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 voidforceUnlock()intgetQueueLength()booleanhasQueuedThreads()booleanisHeldByCurrentThread()voidlock()voidlockInterruptible()StringtoString()booleantryLock(long units, TimeUnit timeUnit)voidunlock()
-
-
-
Method Detail
-
lock
public void lock()
- Specified by:
lockin interfaceRuntimeManagerLock
-
tryLock
public boolean tryLock(long units, TimeUnit timeUnit) throws InterruptedException- Specified by:
tryLockin interfaceRuntimeManagerLock- Throws:
InterruptedException
-
lockInterruptible
public void lockInterruptible() throws InterruptedException- Specified by:
lockInterruptiblein interfaceRuntimeManagerLock- Throws:
InterruptedException
-
unlock
public void unlock()
- Specified by:
unlockin interfaceRuntimeManagerLock
-
forceUnlock
public void forceUnlock()
- Specified by:
forceUnlockin interfaceRuntimeManagerLock
-
hasQueuedThreads
public boolean hasQueuedThreads()
- Specified by:
hasQueuedThreadsin interfaceRuntimeManagerLock
-
isHeldByCurrentThread
public boolean isHeldByCurrentThread()
- Specified by:
isHeldByCurrentThreadin interfaceRuntimeManagerLock
-
getQueueLength
public int getQueueLength()
- Specified by:
getQueueLengthin interfaceRuntimeManagerLock
-
-