A {@link LockFactory} that wraps another {@link LockFactory} and verifies that each lock obtain/release is "correct" (never results in two processes holding the lock at the same time). It does this by contacting an external server ({@link LockVerifyServer}) to assert that at most one process holds the lock at a time. To use this, you should also run {@link LockVerifyServer} on the host & port matching what you pass to the constructor.

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

Syntax

C#
public class VerifyingLockFactory : LockFactory
Visual Basic
Public Class VerifyingLockFactory _
	Inherits LockFactory
Visual C++
public ref class VerifyingLockFactory : public LockFactory

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Store..::..LockFactory
    Lucene.Net.Store..::..VerifyingLockFactory

See Also