01: /*
02: * LICENSE INFORMATION
03: * Copyright 2005-2007 by FZI (http://www.fzi.de).
04: * Licensed under a BSD license (http://www.opensource.org/licenses/bsd-license.php)
05: * <OWNER> = Max Völkel
06: * <ORGANIZATION> = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe, Germany
07: * <YEAR> = 2007
08: *
09: * Project information at http://semweb4j.org/rdf2go
10: */
11: package org.ontoware.rdf2go.model;
12:
13: import org.ontoware.rdf2go.exception.LockException;
14:
15: public interface Lockable {
16:
17: //////////////
18: // locking
19:
20: /**
21: * @return true if a lock is active
22: */
23: public boolean isLocked();
24:
25: /**
26: * Removes a lock. If no lock was set, nothing happens.
27: */
28: public void unlock();
29:
30: /**
31: * Tries to obtain a lock.
32: * @throws LockException if already locked
33: */
34: public void lock() throws LockException;
35:
36: }
|