|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.ejb.plugins.lock.BeanLockSupport
org.jboss.ejb.plugins.lock.NoLock
No locking what-so-ever Holds all locks for entity beans, not used for stateful.
All BeanLocks have a reference count. When the reference count goes to 0, the lock is released from the id -> lock mapping.
Revisions:
2001/08/08: billb
| Field Summary |
| Fields inherited from class org.jboss.ejb.plugins.lock.BeanLockSupport |
container, id, refs, synched, synchedDepth, tx, txTimeout |
| Constructor Summary | |
NoLock()
|
|
| Method Summary | |
void |
endInvocation(Invocation mi)
Callback to the BeanLock to inform it that a method invocation has ended. |
void |
endTransaction(Transaction transaction)
Informs the lock that the given transaction has ended. |
void |
schedule(Invocation mi)
Schedule(Invocation) Schedule implements a particular policy for scheduling the threads coming in. |
void |
wontSynchronize(Transaction trasaction)
Signifies to the lock that the transaction will not Synchronize (Tx demarcation not seen). |
| Methods inherited from class org.jboss.ejb.plugins.lock.BeanLockSupport |
addRef, attemptSync, getId, getRefs, getResourceHolder, getTransaction, releaseSync, removeRef, setContainer, setId, setTimeout, setTransaction, sync |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NoLock()
| Method Detail |
public void schedule(Invocation mi) throws Exception
schedule in interface BeanLockschedule in class BeanLockSupportExceptionpublic void endTransaction(Transaction transaction)
BeanLock
endTransaction in interface BeanLockendTransaction in class BeanLockSupportpublic void wontSynchronize(Transaction trasaction)
BeanLockOSH: This method does not seem to be called from anywhere. What is it meant for? To be called on a timeout before the transaction has terminated?
wontSynchronize in interface BeanLockwontSynchronize in class BeanLockSupportpublic void endInvocation(Invocation mi)
BeanLock
endInvocation in interface BeanLockendInvocation in class BeanLockSupport
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||