Package org.apache.lucene.index
Interface SegmentReader.CoreClosedListener
-
- Enclosing class:
- SegmentReader
public static interface SegmentReader.CoreClosedListenerCalled when the shared core for this SegmentReader is closed.This listener is called only once all SegmentReaders sharing the same core are closed. At this point it is safe for apps to evict this reader from any caches keyed on
SegmentReader.getCoreCacheKey(). This is the same interface thatFieldCacheuses, internally, to evict entries.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonClose(SegmentReader owner)
-
-
-
Method Detail
-
onClose
void onClose(SegmentReader owner)
-
-