Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | List of all members
Lucene.Net.Store.NoLock Class Reference

Inherits Lucene.Net.Store.Lock.

Public Member Functions

override bool Obtain ()
 Attempts to obtain exclusive access and immediately return upon success or failure.
 
override void Release ()
 Releases exclusive access.
 
override bool IsLocked ()
 Returns true if the resource is currently locked. Note that one must still call Obtain() before using the resource.
 
override System.String ToString ()
 
- Public Member Functions inherited from Lucene.Net.Store.Lock
virtual bool Obtain (long lockWaitTimeout)
 Attempts to obtain an exclusive lock within amount of time given. Polls once per LOCK_POLL_INTERVAL (currently 1000) milliseconds until lockWaitTimeout is passed.
 

Additional Inherited Members

- Public Attributes inherited from Lucene.Net.Store.Lock
const long LOCK_OBTAIN_WAIT_FOREVER = - 1
 Pass this value to Obtain(long) to try forever to obtain the lock.
 
- Static Public Attributes inherited from Lucene.Net.Store.Lock
static long LOCK_POLL_INTERVAL = 1000
 How long Obtain(long) waits, in milliseconds, in between attempts to acquire the lock.
 

Detailed Description

Definition at line 55 of file NoLockFactory.cs.

Member Function Documentation

override bool Lucene.Net.Store.NoLock.IsLocked ( )
virtual

Returns true if the resource is currently locked. Note that one must still call Obtain() before using the resource.

Implements Lucene.Net.Store.Lock.

Definition at line 66 of file NoLockFactory.cs.

override bool Lucene.Net.Store.NoLock.Obtain ( )
virtual

Attempts to obtain exclusive access and immediately return upon success or failure.

Returns
true iff exclusive access is obtained

Implements Lucene.Net.Store.Lock.

Definition at line 57 of file NoLockFactory.cs.

override void Lucene.Net.Store.NoLock.Release ( )
virtual

Releases exclusive access.

Implements Lucene.Net.Store.Lock.

Definition at line 62 of file NoLockFactory.cs.

override System.String Lucene.Net.Store.NoLock.ToString ( )

Definition at line 71 of file NoLockFactory.cs.


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