Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Public Member Functions | Protected Member Functions | List of all members
Lucene.Net.Store.Lock.With Class Referenceabstract

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.
 

Detailed Description

Utility class for executing code with exclusive access.

Definition at line 122 of file Lock.cs.

Constructor & Destructor Documentation

Lucene.Net.Store.Lock.With.With ( Lock  lock_Renamed,
long  lockWaitTimeout 
)
protected

Constructs an executor that will grab the named lock.

Definition at line 129 of file Lock.cs.

Member Function Documentation

virtual System.Object Lucene.Net.Store.Lock.With.run ( )
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>

Definition at line 147 of file Lock.cs.


The documentation for this class was generated from the following file: