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

## Class TimeoutRuntimeManagerLockStrategy

- java.lang.Object
- - org.jbpm.runtime.manager.impl.lock.TimeoutRuntimeManagerLockStrategy

- All Implemented Interfaces:
    `RuntimeManagerLockStrategy`

      public class TimeoutRuntimeManagerLockStrategy
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected Map<Long,​org.jbpm.runtime.manager.impl.lock.RuntimeManagerLockThreadsInfo>` | `engineLocks` |
    `protected static org.slf4j.Logger` | `logger` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `TimeoutRuntimeManagerLockStrategy()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `init​(RuntimeManagerLockFactory factory)` |
    `RuntimeManagerLock` | `lock​(Long id, org.kie.api.runtime.manager.RuntimeEngine runtime)` |
    `protected void` | `lock​(RuntimeManagerLock lock)` |
    `void` | `unlock​(Long id, org.kie.api.runtime.manager.RuntimeEngine runtime)` |
    `protected void` | `unlock​(RuntimeManagerLock lock)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### logger

          protected static final org.slf4j.Logger logger

    - #### engineLocks

          protected Map<Long,​org.jbpm.runtime.manager.impl.lock.RuntimeManagerLockThreadsInfo> engineLocks

  - ### Constructor Detail

    - #### TimeoutRuntimeManagerLockStrategy

          public TimeoutRuntimeManagerLockStrategy()

  - ### Method Detail

    - #### lock

          protected void lock​(RuntimeManagerLock lock)
                       throws InterruptedException

      Throws:
        `InterruptedException`

    - #### unlock

          protected void unlock​(RuntimeManagerLock lock)

    - #### init

          public void init​(RuntimeManagerLockFactory factory)

      Specified by:
        `init` in interface `RuntimeManagerLockStrategy`

    - #### lock

          public RuntimeManagerLock lock​(Long id,
                                         org.kie.api.runtime.manager.RuntimeEngine runtime)
                                  throws InterruptedException

      Specified by:
        `lock` in interface `RuntimeManagerLockStrategy`
      Throws:
        `InterruptedException`

    - #### unlock

          public void unlock​(Long id,
                             org.kie.api.runtime.manager.RuntimeEngine runtime)

      Specified by:
        `unlock` in interface `RuntimeManagerLockStrategy`