|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.tx.concurrency.ConcurrencyMgr
public class ConcurrencyMgr
The concurrency manager for the transaction. Each transaction has its own concurrency manager. The concurrency manager keeps track of which locks the transaction currently has, and interacts with the global lock table as needed.
Constructor Summary | |
---|---|
ConcurrencyMgr()
|
Method Summary | |
---|---|
void |
release()
Releases all locks by asking the lock table to unlock each one. |
void |
sLock(Block blk)
Obtains an SLock on the block, if necessary. |
void |
xLock(Block blk)
Obtains an XLock on the block, if necessary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConcurrencyMgr()
Method Detail |
---|
public void sLock(Block blk)
blk
- a reference to the disk blockpublic void xLock(Block blk)
blk
- a refrence to the disk blockpublic void release()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |