org.apache.ode.bpel.engine

## Class InstanceLockManager

- java.lang.Object
- - org.apache.ode.bpel.engine.InstanceLockManager

-     public class InstanceLockManager
      extends java.lang.Object

  WARNING --- EXPERIMENTAL Mechanism for obtaining instance-level locks. Very simple implementation at the moment, that is only valid for a single processing node. To move to multi-processor setup we'll need to implement this lock in the database.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `InstanceLockManager.TimeoutException` Exception class indicating a time-out occured while obtaining a lock.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `InstanceLockManager()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `lock(java.lang.Long iid, int time, java.util.concurrent.TimeUnit tu)`
    `java.lang.String` | `toString()`
    `void` | `unlock(java.lang.Long iid)`

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

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

- - ### Constructor Detail

    - #### InstanceLockManager

          public InstanceLockManager()

  - ### Method Detail

    - #### lock

          public void lock(java.lang.Long iid,
                           int time,
                           java.util.concurrent.TimeUnit tu)
                    throws java.lang.InterruptedException,
                           InstanceLockManager.TimeoutException

      Throws:
        `java.lang.InterruptedException`
        `InstanceLockManager.TimeoutException`

    - #### unlock

          public void unlock(java.lang.Long iid)

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`