org.logicblaze.lingo.lock
Class NonDeadlockLockManager

java.lang.Object
  extended by org.logicblaze.lingo.lock.NonDeadlockLockManager
All Implemented Interfaces:
org.apache.activemq.Service, LockManager

public class NonDeadlockLockManager
extends java.lang.Object
implements LockManager

A simple implementation which just uses in-JVM locks.

Version:
$Revision$

Constructor Summary
NonDeadlockLockManager()
           
 
Method Summary
protected  edu.emory.mathcs.backport.java.util.concurrent.locks.ReadWriteLock createLock(java.lang.String id)
          Factory method to create a new read write lock
 edu.emory.mathcs.backport.java.util.concurrent.locks.ReadWriteLock getLock(java.lang.String id)
          Gets hold of the read/write lock for the given ID
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonDeadlockLockManager

public NonDeadlockLockManager()
Method Detail

getLock

public edu.emory.mathcs.backport.java.util.concurrent.locks.ReadWriteLock getLock(java.lang.String id)
Description copied from interface: LockManager
Gets hold of the read/write lock for the given ID

Specified by:
getLock in interface LockManager
Parameters:
id - is the unique ID of the lock to acquire
Returns:

createLock

protected edu.emory.mathcs.backport.java.util.concurrent.locks.ReadWriteLock createLock(java.lang.String id)
Factory method to create a new read write lock


start

public void start()
           throws javax.jms.JMSException
Specified by:
start in interface org.apache.activemq.Service
Throws:
javax.jms.JMSException

stop

public void stop()
          throws javax.jms.JMSException
Specified by:
stop in interface org.apache.activemq.Service
Throws:
javax.jms.JMSException


Copyright © 2011 LogicBlaze, Inc.. All Rights Reserved.