info.aduna.concurrent.locks
Class ExclusiveLockManager

java.lang.Object
  extended by info.aduna.concurrent.locks.ExclusiveLockManager

public class ExclusiveLockManager
extends Object

A lock manager for exclusive locks.

Author:
Arjohn Kampman

Constructor Summary
ExclusiveLockManager()
          Creates an ExclusiveLockManager.
ExclusiveLockManager(boolean trackLocks)
           
 
Method Summary
 Lock getExclusiveLock()
          Gets the exclusive lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExclusiveLockManager

public ExclusiveLockManager()
Creates an ExclusiveLockManager.


ExclusiveLockManager

public ExclusiveLockManager(boolean trackLocks)
Method Detail

getExclusiveLock

public Lock getExclusiveLock()
                      throws InterruptedException
Gets the exclusive lock. This method blocks when the exclusive lock is currently in use until it is released.

Throws:
InterruptedException


Copyright © 1997-2008 Aduna. All Rights Reserved.