DotLucene 1.4 API Documentation |

# Lock.Obtain Method

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

#### Overload List

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

> public abstract bool Obtain();

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);

#### See Also

Lock Class | Lucene.Net.Store Namespace