Apache Lucene.Net 2.4.0 Class Library API

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. Polls once per {@link #LOCK_POLL_INTERVAL} (currently 1000) milliseconds until lockWaitTimeout is passed.

public virtual bool Obtain(long);

See Also

Lock Class | Lucene.Net.Store Namespace