org.apache.lucene.store
public abstract static class Lock.With extends Object
| Constructor Summary | |
|---|---|
| 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 With while lock is obtained. |
Throws: LockObtainFailedException if lock could not be obtained IOException if Lock throws IOException