|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.objectwave.transactionalSupport.TransactionManager.MyLockManager
A very efficient lock manager that takes advantage of the following assumptions. 1. No thread will acquire locks twice. 2. We don't care about 'equals' comparison, just object identity '==' comparisons. 3. The 'object []' containing the objects to lock and unlock will be the same instance.
| Constructor Summary | |
TransactionManager.MyLockManager()
LockManager constructor comment. |
|
| Method Summary | |
void |
acquireLocks(java.lang.Object[] objectsToLock,
int count)
Aquire locks for all of the objects in the Vector, or none of them. |
void |
acquireLocksOrig(java.lang.Object[] objectsToLock,
int length)
Deprecated. Redesigned. |
protected boolean |
isTaken(java.lang.Object[] objectsToLock,
int count)
Is any object in the target list taken |
void |
releaseLocks(java.lang.Object[] objectsToRelease,
int length)
Aquire locks for all of the objects in the Vector, or none of them. |
void |
releaseLocksOrig(java.lang.Object[] objectsToRelease,
int length)
Aquire locks for all of the objects in the Vector, or none of them. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransactionManager.MyLockManager()
| Method Detail |
protected boolean isTaken(java.lang.Object[] objectsToLock,
int count)
objectsToLock - count -
public final void acquireLocks(java.lang.Object[] objectsToLock,
int count)
objectsToLock - count -
public final void acquireLocksOrig(java.lang.Object[] objectsToLock,
int length)
objectsToLock - length -
public final void releaseLocks(java.lang.Object[] objectsToRelease,
int length)
objectsToRelease - length -
public final void releaseLocksOrig(java.lang.Object[] objectsToRelease,
int length)
objectsToRelease - length -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||