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
IOException
public final boolean closeWhenPossible() throws IOException
true
if the close succeeded, false
otherwise.IOException
public final void close() throws IOException
IOException
protected abstract void handleClose() throws IOException
IOException
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.