ozone core API

org.ozoneDB.core.dr
Interface Locker

All Known Implementing Classes:
Transaction

public interface Locker

Version:
$Revision: 1.5 $Date: 2002/12/29 11:15:57 $
Author:
SMB

Method Summary
 Lockable blockedBy()
          Pins the Lockable which is blocks this Locker and returns it or null, if no Lockable blocks this locker.
 boolean isBlocked()
          Returns wether this locker is blocked.
 boolean isDeadlocked()
           
 void setDeadlocked(boolean to)
           
 

Method Detail

blockedBy

public Lockable blockedBy()
Pins the Lockable which is blocks this Locker and returns it or null, if no Lockable blocks this locker. The caller has to unpin it after use.


isBlocked

public boolean isBlocked()
Returns wether this locker is blocked.


setDeadlocked

public void setDeadlocked(boolean to)

isDeadlocked

public boolean isDeadlocked()

ozone core API

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