Lucene.Net 1.9.1 Class Library

Lock.Obtain Method (Int64)

Attempts to obtain an exclusive lock within amount of time given. Currently polls once per second until lockWaitTimeout is passed.

public virtual bool Obtain(
   long lockWaitTimeout
);

Parameters

lockWaitTimeout
length of time to wait in ms

Return Value

true if lock was obtained

See Also

Lock Class | Lucene.Net.Store Namespace | Lock.Obtain Overload List