/** * Throws {@link ExitingReaderException} if {@link QueryTimeout#shouldExit()} returns true, * or if {@link Thread#interrupted()} returns true. */ private void checkAndThrow() { if (queryTimeout.shouldExit()) { throw new ExitingReaderException("The request took too long to iterate over terms. Timeout: " + queryTimeout.toString() + ", TermsEnum=" + in ); } else if (Thread.interrupted()) { throw new ExitingReaderException("Interrupted while iterating over terms. TermsEnum=" + in); } }
/** * Throws {@link ExitingReaderException} if {@link QueryTimeout#shouldExit()} returns true, * or if {@link Thread#interrupted()} returns true. */ private void checkAndThrow() { if (queryTimeout.shouldExit()) { throw new ExitingReaderException("The request took too long to iterate over terms. Timeout: " + queryTimeout.toString() + ", TermsEnum=" + in ); } else if (Thread.interrupted()) { throw new ExitingReaderException("Interrupted while iterating over terms. TermsEnum=" + in); } }
/** * Throws {@link ExitingReaderException} if {@link QueryTimeout#shouldExit()} returns true, * or if {@link Thread#interrupted()} returns true. */ private void checkAndThrow() { if (queryTimeout.shouldExit()) { throw new ExitingReaderException("The request took too long to iterate over terms. Timeout: " + queryTimeout.toString() + ", TermsEnum=" + in ); } else if (Thread.interrupted()) { throw new ExitingReaderException("Interrupted while iterating over terms. TermsEnum=" + in); } }
/** * Throws {@link ExitingReaderException} if {@link QueryTimeout#shouldExit()} returns true, * or if {@link Thread#interrupted()} returns true. */ private void checkAndThrow() { if (queryTimeout.shouldExit()) { throw new ExitingReaderException("The request took too long to iterate over terms. Timeout: " + queryTimeout.toString() + ", TermsEnum=" + in ); } else if (Thread.interrupted()) { throw new ExitingReaderException("Interrupted while iterating over terms. TermsEnum=" + in); } }