ozone core API

org.ozoneDB.core
Class AbstractLock

java.lang.Object
  extended byorg.ozoneDB.core.AbstractLock
All Implemented Interfaces:
Lock, java.io.Serializable
Direct Known Subclasses:
ExclusiveLock, MROWLock, SharedLock

public abstract class AbstractLock
extends java.lang.Object
implements Lock

Version:
$Revision: 1.4 $Date: 2002/09/18 06:54:14 $
Author:
SMB
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.ozoneDB.core.Lock
LEVEL_MAX, LEVEL_NONE, LEVEL_READ, LEVEL_UPGRADE, LEVEL_WRITE, NOT_ACQUIRED
 
Constructor Summary
AbstractLock()
           
 
Method Summary
 void checkDeadlock(Transaction ta)
          Check for deadlock and throw an exception if a deadlock is detected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.core.Lock
isAcquiredBy, level, lockerIDs, release, reset, tryAcquire
 

Constructor Detail

AbstractLock

public AbstractLock()
Method Detail

checkDeadlock

public void checkDeadlock(Transaction ta)
                   throws TransactionError
Description copied from interface: Lock
Check for deadlock and throw an exception if a deadlock is detected. Although the transactions waits for locks and so seems also to be be a good place for deadlock detection, we do it here because each Lock implementations should hide the deadlock detection logic.

Specified by:
checkDeadlock in interface Lock
Throws:
TransactionError

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.