Class QueryTimeoutContext

java.lang.Object
com.atlassian.jira.search.lucene.timeout.QueryTimeoutContext

public final class QueryTimeoutContext extends Object
Holds per-thread start time for Lucene query execution so that timeouts can be applied per search.
  • Method Details

    • markStart

      public static void markStart()
    • clear

      public static void clear()
    • getStartNanos

      public static Long getStartNanos()
    • runInContext

      public static <T, E extends Exception> T runInContext(QueryTimeoutContext.ThrowingSupplier<T,E> supplier) throws E
      Throws:
      E