Class ReaderManager

All Implemented Interfaces:
Closeable, AutoCloseable

public final class ReaderManager extends ReferenceManager<DirectoryReader>
Utility class to safely share DirectoryReader instances across multiple threads, while periodically reopening. This class ensures each reader is closed only once all threads have finished using it.
See Also:
WARNING: This API is experimental and might change in incompatible ways in the next release.