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:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionobtainLock(Directory dir, String lockName) Return a new obtained Lock instance identified by lockName.
-
Field Details
-
INSTANCE
The singleton
-
-
Method Details
-
obtainLock
Description copied from class:LockFactoryReturn a new obtained Lock instance identified by lockName.- Specified by:
obtainLockin classLockFactory- Parameters:
lockName- name of the lock to be created.
-