Apache Lucene.Net 2.4.0 Class Library API

Directory.SetLockFactory Method 

Set the LockFactory that this Directory instance should use for its locking implementation. Each * instance of LockFactory should only be used for one directory (ie, do not share a single instance across multiple Directories).

public virtual void SetLockFactory(
   LockFactory lockFactory
);

Parameters

lockFactory
instance of {@link LockFactory}.

See Also

Directory Class | Lucene.Net.Store Namespace