KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > core > dr > Locker


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Core License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: Locker.java,v 1.5 2002/12/29 11:15:57 per_nyfelt Exp $
8

9 package org.ozoneDB.core.dr;
10
11 /**
12  * @author <a HREF="http://www.softwarebuero.de/">SMB</a>
13  * @version $Revision: 1.5 $Date: 2002/12/29 11:15:57 $
14  */

15 public interface Locker {
16
17
18     /**
19         Pins the Lockable which is blocks this Locker and returns it or null, if no Lockable blocks this locker.
20         The caller has to unpin it after use.
21     */

22     public Lockable blockedBy();
23
24     /**
25         Returns wether this locker is blocked.
26     */

27     public boolean isBlocked();
28
29     public void setDeadlocked(boolean to);
30
31     public boolean isDeadlocked();
32 }
33
Popular Tags