# Uses of Class org.apache.lucene.store.LockObtainFailedException (Lucene 3.6.1 API)

## Uses of Class
org.apache.lucene.store.LockObtainFailedException

Packages that use LockObtainFailedException
org.apache.lucene.index: Code to maintain and access indices.
org.apache.lucene.store: Binary i/o API, used for all index data.

Uses of LockObtainFailedException in org.apache.lucene.index

Methods in org.apache.lucene.index that throw LockObtainFailedException
`void` `IndexReader.deleteDocument(int docNum)` Deprecated. Write support will be removed in Lucene 4.0. Use `IndexWriter.deleteDocuments(Term)` instead
`int` `IndexReader.deleteDocuments(Term term)` Deprecated. Write support will be removed in Lucene 4.0. Use `IndexWriter.deleteDocuments(Term)` instead
`void` `IndexReader.setNorm(int doc, String field, byte value)` Deprecated. Write support will be removed in Lucene 4.0. There will be no replacement for this method.
`void` `IndexReader.setNorm(int doc, String field, float value)` Deprecated. Write support will be removed in Lucene 4.0. There will be no replacement for this method.
`void` `IndexReader.undeleteAll()` Deprecated. Write support will be removed in Lucene 4.0. There will be no replacement for this method.

Constructors in org.apache.lucene.index that throw LockObtainFailedException
`IndexWriter(Directory d, Analyzer a, boolean create, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl)` Deprecated. use `IndexWriter.IndexWriter(Directory, IndexWriterConfig)` instead
`IndexWriter(Directory d, Analyzer a, boolean create, IndexWriter.MaxFieldLength mfl)` Deprecated. use `IndexWriter.IndexWriter(Directory, IndexWriterConfig)` instead
`IndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl)` Deprecated. use `IndexWriter.IndexWriter(Directory, IndexWriterConfig)` instead
`IndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl, IndexCommit commit)` Deprecated. use `IndexWriter.IndexWriter(Directory, IndexWriterConfig)` instead
`IndexWriter(Directory d, Analyzer a, IndexWriter.MaxFieldLength mfl)` Deprecated. use `IndexWriter.IndexWriter(Directory, IndexWriterConfig)` instead
`IndexWriter(Directory d, IndexWriterConfig conf)` Constructs a new IndexWriter per the settings given in `conf`.
`PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary, Directory dir, IndexWriterConfig.OpenMode mode, Version matchVersion)` `PersistentSnapshotDeletionPolicy` wraps another `IndexDeletionPolicy` to enable flexible snapshotting.

Uses of LockObtainFailedException in org.apache.lucene.store

Methods in org.apache.lucene.store that throw LockObtainFailedException
`boolean` `Lock.obtain(long lockWaitTimeout)` Attempts to obtain an exclusive lock within amount of time given.
`Object` `Lock.With.run()` Calls `Lock.With.doBody()` while lock is obtained.