|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jso.transaction.JSOLockManager
Constructor Summary | |
JSOLockManager()
|
Method Summary | |
LockInfo |
getLockInfo()
Gets transaction processing information. |
void |
lock(TID txid,
OID oid,
boolean exclusive,
long timeout)
Tries to hold a lock for an object. |
void |
release(TID txid,
OID oid)
Releases the lock for an object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JSOLockManager()
Method Detail |
public void lock(TID txid, OID oid, boolean exclusive, long timeout) throws TransactionTimeoutException
lock
in interface LockManager
oid
- The OID of the object to be locked.exclusive
- Informs if the lock should be exclusive.timeout
- Number of milliseconds for timeout. Values lesser than 1
millisecond mean no timeout should be used.
TransactionTimeoutException
public void release(TID txid, OID oid) throws StorageException
release
in interface LockManager
oid
- The OID of the object to be released.
StorageException
public LockInfo getLockInfo()
getLockInfo
in interface LockManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |