Package org.apache.lucene.index
Interface SegmentReader.CoreClosedListener
-
- Enclosing class:
- SegmentReader
public static interface SegmentReader.CoreClosedListener
Called 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 thatFieldCache
uses, internally, to evict entries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onClose(java.lang.Object ownerCoreCacheKey)
Invoked when the shared core of the originalSegmentReader
has closed.
-