Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`static class` | `InstanceLockManager.TimeoutException` Exception class indicating a time-out occured while obtaining a lock.

Constructor Summary
`InstanceLockManager()`

Method Summary
`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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD