org.apache.ojb.otm.lock.wait
Interface LockWaitStrategy
- All Known Implementing Classes:
- NoWaitStrategy, TimeoutStrategy
public interface LockWaitStrategy
LockWaitStrategy is responsible for waiting for a particular lock to be released. Typically, the
LockWaitStrategy implements deadlock prevention/detection/recovery mechanisms.
- Author:
- Raghu Rajah
waitForLock
void waitForLock(ObjectLock lock,
Transaction tx)
throws LockingException
- Parameters:
lock
- The lock that the tx is waiting fortx
- The waiting tx
- Throws:
LockingException
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.