Class ReaderManager
Utility class to safely share DirectoryReader instances across multiple threads, while periodically reopening. This class ensures each reader is disposed only once all threads have finished using it.
@lucene.experimental
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class ReaderManager : ReferenceManager<DirectoryReader>
Constructors
Name | Description |
---|---|
ReaderManager(IndexWriter, Boolean) | Creates and returns a new ReaderManager from the given IndexWriter. |
ReaderManager(Directory) | Creates and returns a new ReaderManager from the given Directory. |
Methods
Name | Description |
---|---|
DecRef(DirectoryReader) | |
GetRefCount(DirectoryReader) | |
RefreshIfNeeded(DirectoryReader) | |
TryIncRef(DirectoryReader) |