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