org.jbpm.runtime.manager.impl.lock

## 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 and Description
    `SelfReleaseRuntimeManagerLock()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `forceUnlock()`
    `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`

- - ### Constructor Detail

    - #### SelfReleaseRuntimeManagerLock

          public SelfReleaseRuntimeManagerLock()

  - ### Method Detail

    - #### lock

          public void lock()

      Specified by:
        `lock` in interface `RuntimeManagerLock`

    - #### tryLock

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

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

    - #### lockInterruptible

          public void lockInterruptible()
                                 throws InterruptedException

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

    - #### unlock

          public void unlock()

      Specified by:
        `unlock` in interface `RuntimeManagerLock`

    - #### forceUnlock

          public void forceUnlock()

      Specified by:
        `forceUnlock` in interface `RuntimeManagerLock`

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

Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.