org.jboss.ejb
Class BeanLockManager
java.lang.Object
|
+--org.jboss.ejb.BeanLockManager
- public class BeanLockManager
- extends java.lang.Object
Manages BeanLocks. All BeanLocks have a reference count.
When the reference count goes to 0, the lock is released from the
id -> lock mapping.
- Version:
- $Revision: 1.5.4.2 $
Revisions:
20010802: marcf
- Made bean lock pluggable, container factory passes in lockClass
- Removed un-used constructor, added getters and setters
- Author:
- Bill Burke, Marc Fleury
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lockClass
public java.lang.Class lockClass
BeanLockManager
public BeanLockManager()
getLock
public BeanLock getLock(java.lang.Object id)
- returns the lock associated with the key passed. If there is
no lock one is created this call also increments the number of
references interested in Lock.
WARNING: All access to this method MUST have an equivalent
removeLockRef cleanup call, or this will create a leak in the map,
removeLockRef
public void removeLockRef(java.lang.Object id)
setLockCLass
public void setLockCLass(java.lang.Class lockClass)
setReentrant
public void setReentrant(boolean reentrant)
Copyright © 2000 The JBoss Organization. All Rights Reserved.