|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.otm.lock.wait.TimeoutStrategy
Deadlock detection, then timeout
Constructor Summary | |
TimeoutStrategy()
The default timeout is 30 seconds |
|
TimeoutStrategy(long timeout)
|
Method Summary | |
void |
waitForLock(ObjectLock lock,
Transaction tx)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeoutStrategy(long timeout)
timeout
- the number of milliseconds to wait before throwing exceptionpublic TimeoutStrategy()
Method Detail |
public void waitForLock(ObjectLock lock, Transaction tx) throws LockingException
waitForLock
in interface LockWaitStrategy
lock
- The lock that the tx is waiting fortx
- The waiting tx
LockingException
LockWaitStrategy.waitForLock(ObjectLock, Transaction)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |