Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » [javadoc | source]
org.jboss.ejb
public class: BeanLockManager [javadoc | source]
java.lang.Object
   org.jboss.ejb.BeanLockManager
Manages BeanLocks. All BeanLocks have a reference count. When the reference count goes to 0, the lock is released from the id -> lock mapping.
Field Summary
public  Class lockClass     
protected  LockMonitor monitor     
Constructor:
 public BeanLockManager(Container container) 
Method from org.jboss.ejb.BeanLockManager Summary:
canPassivate,   getLock,   getLockMonitor,   removeLockRef,   setContainer,   setLockCLass,   setReentrant
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.BeanLockManager Detail:
 public boolean canPassivate(Object id) 
 public BeanLock getLock(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,
 public LockMonitor getLockMonitor() 
 public  void removeLockRef(Object id) 
 public  void setContainer(Container container) 
 public  void setLockCLass(Class lockClass) 
 public  void setReentrant(boolean reentrant)