Package org.apache.ojb.otm.lock.wait

Examples of org.apache.ojb.otm.lock.wait.LockWaitStrategy.waitForLock()


    public void waitForTx(Transaction tx)
        throws LockingException
    {
        OTMKit kit = tx.getKit();
        LockWaitStrategy waitStrategy = kit.getLockWaitStrategy();
        waitStrategy.waitForLock(this, tx);
    }

    public boolean isFree()
    {
        return ((_writer == null) && _readers.isEmpty());
View Full Code Here


    public void waitForTx(Transaction tx)
        throws LockingException
    {
        OTMKit kit = tx.getKit();
        LockWaitStrategy waitStrategy = kit.getLockWaitStrategy();
        waitStrategy.waitForLock(this, tx);
    }

    public boolean isFree()
    {
        return ((_writer == null) && _readers.isEmpty());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.