File
Doc
Category
Size
Date
Package
NoLockFactory.java
API Doc
Apache Lucene 2.1.0
1819
Wed Feb 14 10:46:40 GMT 2007
org.apache.lucene.store
NoLockFactory
java.lang.Object
org.apache.lucene.store.LockFactory
public class NoLockFactory extends LockFactory
Use this {@link LockFactory} to disable locking entirely. This LockFactory is used when you call {@link FSDirectory#setDisableLocks}. Only one instance of this lock is created. You should call {@link #getNoLockFactory()} to get the instance.
see
LockFactory
Fields Summary
private static NoLock
singletonLock
private static NoLockFactory
singleton
Constructors Summary
Methods Summary
public void
clearLock
(
java.lang.String
lockName)
public static
org.apache.lucene.store.NoLockFactory
getNoLockFactory
()
return singleton;
public
org.apache.lucene.store.Lock
makeLock
(
java.lang.String
lockName)
return singletonLock;
Java Code Source