public abstract class AbstractReaderMonitor extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractReaderMonitor(AbstractLuceneIndex index) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginReading() |
void |
close() |
boolean |
closeWhenPossible()
This method is called in LecenIndex invalidateReaders or on commit
|
void |
endReading()
called by the iterator
|
int |
getReadingCount() |
protected abstract void |
handleClose() |
protected AbstractReaderMonitor(AbstractLuceneIndex index)
public int getReadingCount()
public void beginReading()
public void endReading()
throws IOException
IOExceptionpublic boolean closeWhenPossible()
throws IOException
true if the close succeeded, false otherwise.IOExceptionpublic void close()
throws IOException
IOExceptionprotected abstract void handleClose()
throws IOException
IOExceptionCopyright © 2015-2016 Eclipse Foundation. All Rights Reserved.