public interface ReaderRefreshPolicy
Modifier and Type | Field and Description |
---|---|
static ReaderRefreshPolicy |
NEVER |
Modifier and Type | Method and Description |
---|---|
void |
refreshOnReadIfRequired(Runnable refreshCallback)
This would be invoked before any query is performed
to provide a chance for IndexNode to refresh the readers
|
void |
refreshOnWriteIfRequired(Runnable refreshCallback)
This would invoked after some writes have been performed
and as a final step refresh request is being made.
|
static final ReaderRefreshPolicy NEVER
void refreshOnReadIfRequired(Runnable refreshCallback)
The index may or may not be updated when this method is invoked
refreshCallback
- callback to refresh the readersvoid refreshOnWriteIfRequired(Runnable refreshCallback)
Any time its invoked it can be assumed that index has been updated
refreshCallback
- callback to refresh the readersCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.