KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > lock > LockManagerImpl


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.cache.lock;
8
9 import org.jboss.cache.TreeCache;
10
11
12 /**
13  * @author <a HREF="mailto:bela@jboss.org">Bela Ban</a> Apr 10, 2003
14  * @version $Revision: 1.2 $
15  */

16 public class LockManagerImpl implements LockManager
17 {
18    protected boolean dirty_reads_allowed = true;
19
20
21    public LockManagerImpl()
22    {
23
24    }
25
26    public boolean getDirtyReadsAllowed()
27    {
28       return dirty_reads_allowed;
29    }
30
31    public void setDirtyReadsAllowed(boolean flag)
32    {
33       this.dirty_reads_allowed = flag;
34    }
35
36    public void getReadLock(TreeCache cache, String JavaDoc fqn, long timeout) throws TimeoutException
37    {
38    }
39
40    public void getWriteLock(TreeCache cache, String JavaDoc fqn, long timeout)
41          throws TimeoutException, UpgradeException
42    {
43    }
44
45    public void releaseLock(String JavaDoc fqn, boolean release_children)
46    {
47    }
48
49 }
50
Popular Tags