public class ReaderMonitor extends AbstractReaderMonitor
| Constructor and Description | 
|---|
| ReaderMonitor(LuceneIndex index,
             org.apache.lucene.store.Directory directory)If exception occur when create indexReader it will be thrown on getIndexReader or get IndexSearcher | 
| Modifier and Type | Method and Description | 
|---|---|
| protected org.apache.lucene.search.IndexSearcher | getIndexSearcher() | 
| protected void | handleClose()This method is thread-safe (i.e. | 
beginReading, close, closeWhenPossible, endReading, getReadingCountpublic ReaderMonitor(LuceneIndex index, org.apache.lucene.store.Directory directory)
index - directory - Initializes IndexReaderprotected void handleClose()
                    throws IOException
AbstractReaderMonitorhandleClose in class AbstractReaderMonitorIOExceptionprotected org.apache.lucene.search.IndexSearcher getIndexSearcher()
                                                           throws IOException
IOExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.