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).

Namespace: Lucene.Net.Store
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void SetLockFactory(
	LockFactory lockFactory
)
Visual Basic
Public Overridable Sub SetLockFactory ( _
	lockFactory As LockFactory _
)
Visual C++
public:
virtual void SetLockFactory(
	LockFactory^ lockFactory
)

Parameters

lockFactory
Type: Lucene.Net.Store..::..LockFactory
instance of {@link LockFactory}.

See Also