org.apache.lucene.store.jdbc.lock
Class NoOpLock
java.lang.Object
org.apache.lucene.store.Lock
org.apache.lucene.store.jdbc.lock.NoOpLock
- All Implemented Interfaces:
- JdbcLock
public class NoOpLock
- extends Lock
- implements JdbcLock
A simple no op lock. Performs no locking.
- 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpLock
public NoOpLock()
configure
public void configure(JdbcDirectory jdbcDirectory,
String name)
throws IOException
- Description copied from interface:
JdbcLock
- Configures the lock. Called just after the lock is instantiated.
- Specified by:
configure in interface JdbcLock
- Parameters:
jdbcDirectory - The directory using the lockname - The name of the lock
- Throws:
IOException
initializeDatabase
public void initializeDatabase(JdbcDirectory jdbcDirectory)
- Description copied from interface:
JdbcLock
- Called without configure. Should initialize a creates database.
- Specified by:
initializeDatabase in interface JdbcLock
- Parameters:
jdbcDirectory - The directory owning the lock
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
Copyright (c) 2004-2008 The Compass Project.