FileDocCategorySizeDatePackage
NoLockFactory.javaAPI DocApache Lucene 2.1.01819Wed Feb 14 10:46:40 GMT 2007org.apache.lucene.store

NoLockFactory

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 voidclearLock(java.lang.String lockName)

public static org.apache.lucene.store.NoLockFactorygetNoLockFactory()


      
    return singleton;
  
public org.apache.lucene.store.LockmakeLock(java.lang.String lockName)

    return singletonLock;