Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Inherits Lucene.Net.Store.Lock.
Public Member Functions | |
NativeFSLock (System.IO.DirectoryInfo lockDir, System.String lockFileName) | |
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. | |
Definition at line 142 of file NativeFSLockFactory.cs.
Lucene.Net.Store.NativeFSLock.NativeFSLock | ( | System.IO.DirectoryInfo | lockDir, |
System.String | lockFileName | ||
) |
Definition at line 163 of file NativeFSLockFactory.cs.
|
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 401 of file NativeFSLockFactory.cs.
|
virtual |
Attempts to obtain exclusive access and immediately return upon success or failure.
Implements Lucene.Net.Store.Lock.
Definition at line 177 of file NativeFSLockFactory.cs.
|
virtual |
Releases exclusive access.
Implements Lucene.Net.Store.Lock.
Definition at line 348 of file NativeFSLockFactory.cs.
override System.String Lucene.Net.Store.NativeFSLock.ToString | ( | ) |
Definition at line 435 of file NativeFSLockFactory.cs.