org.compass.needle.coherence
Class DefaultCoherenceLockFactory.CoherenceLock
java.lang.Object
org.apache.lucene.store.Lock
org.compass.needle.coherence.DefaultCoherenceLockFactory.CoherenceLock
- Enclosing class:
- DefaultCoherenceLockFactory
public class DefaultCoherenceLockFactory.CoherenceLock
- extends Lock
| Nested classes/interfaces inherited from class org.apache.lucene.store.Lock |
Lock.With |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCoherenceLockFactory.CoherenceLock
public DefaultCoherenceLockFactory.CoherenceLock(String lockName)
isLocked
public boolean isLocked()
- Specified by:
isLocked in class Lock
obtain
public boolean obtain()
throws IOException
- Specified by:
obtain in class Lock
- Throws:
IOException
obtain
public boolean obtain(long lockWaitTimeout)
throws LockObtainFailedException,
IOException
- Overrides:
obtain in class Lock
- Throws:
LockObtainFailedException
IOException
release
public void release()
- Specified by:
release in class Lock
Copyright (c) 2004-2008 The Compass Project.