com.caucho.server.distlock
Class ClusterLockManager

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

public class ClusterLockManager
extends AbstractLockManager

Manages the distributed lock


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

Constructor Detail

ClusterLockManager

public ClusterLockManager()
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

isClosed

public boolean isClosed()

start

public void start()
Overrides:
start in class AbstractLockManager

close

public void close()
Overrides:
close in class AbstractLockManager