com.caucho.env.lock
Class AbstractLockManager

java.lang.Object
  extended by com.caucho.env.lock.AbstractLockManager
All Implemented Interfaces:
LockManager
Direct Known Subclasses:
ClusterLockManager, SingleLockManager

@Module
public abstract class AbstractLockManager
extends java.lang.Object
implements LockManager

Manages the distributed lock


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

Constructor Detail

AbstractLockManager

public AbstractLockManager()
Method Detail

getOrCreateLock

public abstract java.util.concurrent.locks.Lock getOrCreateLock(java.lang.String name)
Creates a new lock with the given name;

Specified by:
getOrCreateLock in interface LockManager

start

public void start()

close

public void close()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object