public static interface

IndexReader.ReaderFinishedListener

org.apache.lucene.index.IndexReader.ReaderFinishedListener

Class Overview

A custom listener that's invoked when the IndexReader is finished.

For a SegmentReader, 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 getCoreCacheKey(). This is the same interface that FieldCache uses, internally, to evict entries.

For other readers, this listener is called when they are closed.

Summary

Public Methods
void finished(IndexReader reader)

Public Methods

public void finished (IndexReader reader)