An interprocess mutex lock.

Typical use might look like:

            new Lock.With(directory.makeLock("my.lock")) {
            public Object doBody() {
            ... code to execute while locked ...
            }
            }.run();
            

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

Syntax

C#
public abstract class Lock
Visual Basic
Public MustInherit Class Lock
Visual C++
public ref class Lock abstract

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Store..::..Lock

See Also