Package org.jbpm.runtime.manager.impl.lock

## 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
    --- | --- | ---
    `int` | `getQueueLength()` |
    `boolean` | `hasQueuedThreads()` |
    `boolean` | `isHeldByCurrentThread()` |
    `void` | `lock()` |
    `void` | `lockInterruptible()` |
    `String` | `toString()` |
    `boolean` | `tryLock​(long units, TimeUnit timeUnit)` |
    `void` | `unlock()` |

    - ### 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`

- - ### Constructor Detail

    - #### DefaultRuntimeManagerLock

          public DefaultRuntimeManagerLock()

  - ### Method Detail

    - #### lock

          public void lock()

      Specified by:
        `lock` in interface `RuntimeManagerLock`

    - #### lockInterruptible

          public void lockInterruptible()
                                 throws InterruptedException

      Specified by:
        `lockInterruptible` in interface `RuntimeManagerLock`
      Throws:
        `InterruptedException`

    - #### unlock

          public void unlock()

      Specified by:
        `unlock` in interface `RuntimeManagerLock`

    - #### tryLock

          public boolean tryLock​(long units,
                                 TimeUnit timeUnit)
                          throws InterruptedException

      Specified by:
        `tryLock` in interface `RuntimeManagerLock`
      Throws:
        `InterruptedException`

    - #### hasQueuedThreads

          public boolean hasQueuedThreads()

      Specified by:
        `hasQueuedThreads` in interface `RuntimeManagerLock`

    - #### isHeldByCurrentThread

          public boolean isHeldByCurrentThread()

      Specified by:
        `isHeldByCurrentThread` in interface `RuntimeManagerLock`

    - #### getQueueLength

          public int getQueueLength()

      Specified by:
        `getQueueLength` in interface `RuntimeManagerLock`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`