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()
This method is thread-safe (i.e.
|
protected AbstractReaderMonitor(AbstractLuceneIndex index)
public final int getReadingCount()
public final void beginReading()
public final void endReading()
throws IOException
IOExceptionpublic final boolean closeWhenPossible()
throws IOException
true if the close succeeded, false otherwise.IOExceptionpublic final void close()
throws IOException
IOExceptionprotected abstract void handleClose()
throws IOException
IOExceptionCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.