|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectconcurrency.LockingTable
The locking table decides when to grant locks and when not.
Constructor Summary | |
LockingTable()
|
Method Summary | |
void |
addTransaction(Transaction trans)
Adds a new transaction to the locking table. |
boolean |
lock(Transaction trans,
LockableObject obj,
LockMode lockmode)
Checks is a lock can be granted and the lock is registred in the table. |
void |
removeTransaction(Transaction trans)
Removes a transaction from the locking table. |
void |
show()
Shows to de locking table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LockingTable()
Method Detail |
public void addTransaction(Transaction trans)
trans
- The transaction to add.public boolean lock(Transaction trans, LockableObject obj, LockMode lockmode) throws NotActiveTransactionException
trans
- The transaction that locks.obj
- The object to lock.lockmode
- The locking mode.
NotActiveTransactionException
public void removeTransaction(Transaction trans)
trans
- The transaction to remove.public void show()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |