01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Core License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: Locker.java,v 1.2 2002/06/08 00:49:39 mediumnet Exp $
08:
09: package org.ozoneDB.core.dr;
10:
11: import org.ozoneDB.DxLib.*;
12:
13: /**
14: * @author <a href="http://www.softwarebuero.de/">SMB</a>
15: * @version $Revision: 1.2 $Date: 2002/06/08 00:49:39 $
16: */
17: public interface Locker {
18:
19: /**
20: Pins the Lockable which is blocks this Locker and returns it or null, if no Lockable blocks this locker.
21: The caller has to unpin it after use.
22: */
23: public Lockable blockedByAndPin();
24:
25: /**
26: Returns wether this locker is blocked.
27: */
28: public boolean isBlocked();
29:
30: public void setDeadlocked(boolean to);
31:
32: public boolean isDeadlocked();
33: }
|