to.etc.dbutil
Class DbLockKeeper.LockHandle

java.lang.Object
  extended by to.etc.dbutil.DbLockKeeper.LockHandle
Enclosing class:
DbLockKeeper

public static final class DbLockKeeper.LockHandle
extends java.lang.Object

Handle for a specific lock. Multiple handles can be distributed for a single lock. This will only be the case when a lock is asked for the same thread multiple times.


Constructor Summary
DbLockKeeper.LockHandle(to.etc.dbutil.DbLockKeeper.Lock lock)
           
 
Method Summary
 void release()
          If this handle is the last/only handle for a lock the lock is released.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbLockKeeper.LockHandle

public DbLockKeeper.LockHandle(to.etc.dbutil.DbLockKeeper.Lock lock)
Method Detail

release

public void release()
             throws java.lang.Exception
If this handle is the last/only handle for a lock the lock is released.

Throws:
java.lang.Exception - when exception with releasing the lock occurs.