org.compass.needle.terracotta
Class TerracottaLock
java.lang.Object
org.apache.lucene.store.Lock
org.compass.needle.terracotta.TerracottaLock
class TerracottaLock
- extends Lock
- Author:
- kimchy
| Nested classes/interfaces inherited from class org.apache.lucene.store.Lock |
Lock.With |
| Methods inherited from class org.apache.lucene.store.Lock |
obtain |
TerracottaLock
public TerracottaLock(ConcurrentHashMap<String,Object> locks,
String lockName)
obtain
public boolean obtain()
throws IOException
- Specified by:
obtain in class Lock
- Throws:
IOException
release
public void release()
- Specified by:
release in class Lock
isLocked
public boolean isLocked()
- Specified by:
isLocked in class Lock
toString
public String toString()
- Overrides:
toString in class Object
Copyright (c) 2004-2008 The Compass Project.