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

Method Summary
 void waitForLock(ObjectLock lock, Transaction tx)
           
 

Method Detail

waitForLock

public void waitForLock(ObjectLock lock,
                        Transaction tx)
                 throws LockingException
Parameters:
lock - The lock that the tx is waiting for
tx - The waiting tx
Throws:
LockingException


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14