- java.lang.Object
-
- org.apache.lucene.store.LockFactory
-
- org.apache.lucene.store.NoLockFactory
-
public final class NoLockFactory extends LockFactory
Use thisLockFactory
to disable locking entirely. This is a singleton, you have to useINSTANCE
.- See Also:
LockFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
NoLockFactory.NoLock
-
Field Summary
Fields Modifier and Type Field Description static NoLockFactory
INSTANCE
The singleton(package private) static NoLockFactory.NoLock
SINGLETON_LOCK
-
Constructor Summary
Constructors Modifier Constructor Description private
NoLockFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Lock
obtainLock(Directory dir, java.lang.String lockName)
Return a new obtained Lock instance identified by lockName.
-
-
-
Field Detail
-
INSTANCE
public static final NoLockFactory INSTANCE
The singleton
-
SINGLETON_LOCK
static final NoLockFactory.NoLock SINGLETON_LOCK
-
-
Method Detail
-
obtainLock
public Lock obtainLock(Directory dir, java.lang.String lockName)
Description copied from class:LockFactory
Return a new obtained Lock instance identified by lockName.- Specified by:
obtainLock
in classLockFactory
lockName
- name of the lock to be created.
-
-