Package org.apache.lucene.store
Class NoLockFactory
- java.lang.Object
- 
- org.apache.lucene.store.LockFactory
- 
- org.apache.lucene.store.NoLockFactory
 
 
- 
 public final class NoLockFactory extends LockFactory Use thisLockFactoryto disable locking entirely. This is a singleton, you have to useINSTANCE.- See Also:
- LockFactory
 
- 
- 
Field SummaryFields Modifier and Type Field Description static NoLockFactoryINSTANCEThe singleton
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description LockobtainLock(Directory dir, String lockName)Return a new obtained Lock instance identified by lockName.
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final NoLockFactory INSTANCE The singleton
 
- 
 - 
Method Detail- 
obtainLockpublic Lock obtainLock(Directory dir, String lockName) Description copied from class:LockFactoryReturn a new obtained Lock instance identified by lockName.- Specified by:
- obtainLockin class- LockFactory
- lockName- name of the lock to be created.
 
 
- 
 
-