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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lockClass
public java.lang.Class lockClass
monitor
protected LockMonitor (src) monitor
BeanLockManager
public BeanLockManager(Container (src) container)
getLockMonitor
public LockMonitor (src) getLockMonitor()
getLock
public BeanLock (src) 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)
canPassivate
public boolean canPassivate(java.lang.Object id)
setLockCLass
public void setLockCLass(java.lang.Class lockClass)
setReentrant
public void setReentrant(boolean reentrant)
setContainer
public void setContainer(Container (src) container)