Attempts to obtain exclusive access and immediately return upon success or failure.
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);
Lock Class | Lucene.Net.Store Namespace