Interface SegmentReader.ICoreDisposedListener
Called when the shared core for this SegmentReader is disposed.
This listener is called only once all SegmentReaders sharing the same core are disposed. At this point it is safe for apps to evict this reader from any caches keyed on CoreCacheKey. This is the same interface that IFieldCache uses, internally, to evict entries.
NOTE: This was CoreClosedListener in Lucene.
Note
This API is experimental and might change in incompatible ways in the next release.
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public interface ICoreDisposedListener
Methods
| Improve this Doc View SourceOnDispose(Object)
Invoked when the shared core of the original SegmentReader has disposed.
Declaration
void OnDispose(object ownerCoreCacheKey)
Parameters
Type | Name | Description |
---|---|---|
System.Object | ownerCoreCacheKey |