com.caucho.env.lock
Class SingleLockManager

java.lang.Object
  extended by com.caucho.env.lock.AbstractLockManager
      extended by com.caucho.env.lock.SingleLockManager
All Implemented Interfaces:
LockManager

public class SingleLockManager
extends AbstractLockManager

Manages the distributed lock


Constructor Summary
SingleLockManager()
           
 
Method Summary
 java.util.concurrent.locks.Lock getOrCreateLock(java.lang.String name)
          Creates a new lock with the given name;
 
Methods inherited from class com.caucho.env.lock.AbstractLockManager
close, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleLockManager

public SingleLockManager()
Method Detail

getOrCreateLock

public java.util.concurrent.locks.Lock getOrCreateLock(java.lang.String name)
Description copied from class: AbstractLockManager
Creates a new lock with the given name;

Specified by:
getOrCreateLock in interface LockManager
Specified by:
getOrCreateLock in class AbstractLockManager