Class ExitableDirectoryReader

All Implemented Interfaces:
Closeable, AutoCloseable

public class ExitableDirectoryReader extends FilterDirectoryReader
The ExitableDirectoryReader wraps a real index DirectoryReader and allows for a QueryTimeout implementation object to be checked periodically to see if the thread should exit or not. If QueryTimeout.shouldExit() returns true, an ExitableDirectoryReader.ExitingReaderException is thrown.
See Also: