Class DefaultRuntimeManagerLock
- java.lang.Object
-
- org.jbpm.runtime.manager.impl.lock.DefaultRuntimeManagerLock
-
- All Implemented Interfaces:
RuntimeManagerLock
public class DefaultRuntimeManagerLock extends Object implements RuntimeManagerLock
-
-
Constructor Summary
Constructors Constructor Description DefaultRuntimeManagerLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetQueueLength()booleanhasQueuedThreads()booleanisHeldByCurrentThread()voidlock()voidlockInterruptible()StringtoString()booleantryLock(long units, TimeUnit timeUnit)voidunlock()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jbpm.runtime.manager.spi.RuntimeManagerLock
forceUnlock
-
-
-
-
Method Detail
-
lock
public void lock()
- Specified by:
lockin interfaceRuntimeManagerLock
-
lockInterruptible
public void lockInterruptible() throws InterruptedException- Specified by:
lockInterruptiblein interfaceRuntimeManagerLock- Throws:
InterruptedException
-
unlock
public void unlock()
- Specified by:
unlockin interfaceRuntimeManagerLock
-
tryLock
public boolean tryLock(long units, TimeUnit timeUnit) throws InterruptedException- Specified by:
tryLockin interfaceRuntimeManagerLock- Throws:
InterruptedException
-
hasQueuedThreads
public boolean hasQueuedThreads()
- Specified by:
hasQueuedThreadsin interfaceRuntimeManagerLock
-
isHeldByCurrentThread
public boolean isHeldByCurrentThread()
- Specified by:
isHeldByCurrentThreadin interfaceRuntimeManagerLock
-
getQueueLength
public int getQueueLength()
- Specified by:
getQueueLengthin interfaceRuntimeManagerLock
-
-