示例#1
0
 /// <summary>
 /// Expert: remove a previously added <see cref="IReaderClosedListener"/>.
 /// <para/>
 /// @lucene.experimental
 /// </summary>
 public void RemoveReaderClosedListener(IReaderClosedListener listener)
 {
     EnsureOpen();
     readerClosedListeners.Remove(listener);
 }
示例#2
0
 /// <summary>
 /// Expert: adds a <see cref="IReaderClosedListener"/>.  The
 /// provided listener will be invoked when this reader is closed.
 /// <para/>
 /// @lucene.experimental
 /// </summary>
 public void AddReaderClosedListener(IReaderClosedListener listener)
 {
     EnsureOpen();
     readerClosedListeners.Add(listener);
 }