| |
|
| java.lang.Object org.jboss.ejb.plugins.lock.BeanLockSupport
All known Subclasses: org.jboss.ejb.plugins.lock.SimpleReadWriteEJBLock, org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock, org.jboss.ejb.plugins.lock.NoLock,
id | protected Object id(Code) | | The Cachekey corresponding to this Bean
|
log | static Logger log(Code) | | Logger instance
|
refs | protected int refs(Code) | | Number of threads that retrieved this lock from the manager
(0 means removing)
|
synchedDepth | protected int synchedDepth(Code) | | |
tx | protected Transaction tx(Code) | | Transaction holding lock on bean
|
txTimeout | protected int txTimeout(Code) | | |
addRef | public void addRef()(Code) | | |
attemptSync | public boolean attemptSync()(Code) | | A non-blocking method that checks if the calling thread will be able to acquire
the sync lock based on the calling thread.
true if the calling thread can obtain the sync lock in whichcase it will, false if another thread already has the lock. |
endTransaction | abstract public void endTransaction(Transaction tx)(Code) | | |
getRefs | public int getRefs()(Code) | | |
getTransaction | public Transaction getTransaction()(Code) | | |
releaseSync | public void releaseSync()(Code) | | |
removeRef | public void removeRef()(Code) | | |
setTimeout | public void setTimeout(int timeout)(Code) | | |
setTransaction | public void setTransaction(Transaction tx)(Code) | | The setTransaction associates a transaction with the lock.
The current transaction is associated by the schedule call.
|
sync | public void sync()(Code) | | A method that checks if the calling thread has the lock, and if it
does not blocks until the lock is available. If there is no current owner
of the lock, or the calling thread already owns the lock then the
calling thread will immeadiately acquire the lock.
|
wontSynchronize | abstract public void wontSynchronize(Transaction tx)(Code) | | |
|
|
|