Attempts to obtain an exclusive lock within amount of
time given. Polls once per {@link #LOCK_POLL_INTERVAL}
(currently 1000) milliseconds until lockWaitTimeout is
passed.
out of bounds
Namespace: Lucene.Net.StoreAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public virtual bool Obtain( long lockWaitTimeout ) |
Visual Basic |
---|
Public Overridable Function Obtain ( _ lockWaitTimeout As Long _ ) As Boolean |
Visual C++ |
---|
public: virtual bool Obtain( long long lockWaitTimeout ) |
Parameters
- lockWaitTimeout
- Type: System..::..Int64
length of time to wait in milliseconds or {@link #LOCK_OBTAIN_WAIT_FOREVER} to retry forever