| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.lucene.store.LockFactoryorg.apache.lucene.store.NoLockFactorypublic class NoLockFactoryextends LockFactoryLockFactory to disable locking entirely.
This LockFactory is used when you call FSDirectory.setDisableLocks(boolean).
Only one instance of this lock is created. You should call getNoLockFactory() to get the instance.
LockFactoryField Summary |
Fields inherited from class org.apache.lucene.store.LockFactory | |
lockPrefix | |
Method Summary | |
void |
|
static NoLockFactory | |
Lock |
|
Methods inherited from class org.apache.lucene.store.LockFactory | |
clearLock, getLockPrefix, makeLock, setLockPrefix | |
public void clearLock(String lockName)
Attempt to clear (forcefully unlock and remove) the specified lock. Only call this at a time when you are certain this lock is no longer in use.
- Overrides:
- clearLock in interface LockFactory
- Parameters:
lockName- name of the lock to be cleared.
public Lock makeLock(String lockName)
Return a new Lock instance identified by lockName.
- Overrides:
- makeLock in interface LockFactory
- Parameters:
lockName- name of the lock to be created.