org.apache.lucene.store
public abstract static class Lock.With extends Object
| Constructor Summary | |
|---|---|
| With(Lock lock) Constructs an executor that will grab the named lock.
| |
| With(Lock lock, long lockWaitTimeout) Constructs an executor that will grab the named lock. | |
| Method Summary | |
|---|---|
| protected abstract Object | doBody() Code to execute with exclusive access. |
| Object | run() Calls {@link #doBody} while lock is obtained. |
Deprecated: Kept only to avoid breaking existing code.
Constructs an executor that will grab the named lock. Defaults lockWaitTimeout to Lock.COMMIT_LOCK_TIMEOUT.