Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Utility class for executing code with exclusive access. More...
Public Member Functions | |
virtual System.Object | run () |
Calls DoBody while lock is obtained. Blocks if lock cannot be obtained immediately. Retries to obtain lock once per second until it is obtained, or until it has tried ten times. Lock is released when DoBody exits. | |
Protected Member Functions | |
With (Lock lock_Renamed, long lockWaitTimeout) | |
Constructs an executor that will grab the named lock. | |
|
protected |
|
virtual |
Calls DoBody while lock is obtained. Blocks if lock cannot be obtained immediately. Retries to obtain lock once per second until it is obtained, or until it has tried ten times. Lock is released when DoBody exits.
<throws> LockObtainFailedException if lock could not </throws>
be obtained
<throws> IOException if Lock.Obtain(long) throws IOException </throws>