Package org.apache.lucene.store
Class NoLockFactory
java.lang.Object
org.apache.lucene.store.LockFactory
org.apache.lucene.store.NoLockFactory
Use this
LockFactory
to disable locking entirely. This is a singleton, you have to use
INSTANCE
.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NoLockFactory
The singleton(package private) static final NoLockFactory.NoLock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionobtainLock
(Directory dir, String lockName) Return a new obtained Lock instance identified by lockName.
-
Field Details
-
INSTANCE
The singleton -
SINGLETON_LOCK
-
-
Constructor Details
-
NoLockFactory
private NoLockFactory()
-
-
Method Details
-
obtainLock
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.
-