Class QueryTimeoutContext
java.lang.Object
com.atlassian.jira.search.lucene.timeout.QueryTimeoutContext
Holds per-thread start time for Lucene query execution so that timeouts can be applied per search.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceQueryTimeoutContext.ThrowingSupplier<T,E extends Exception> -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()static Longstatic voidstatic <T,E extends Exception>
TrunInContext(QueryTimeoutContext.ThrowingSupplier<T, E> supplier)
-
Method Details
-
markStart
public static void markStart() -
clear
public static void clear() -
getStartNanos
-
runInContext
public static <T,E extends Exception> T runInContext(QueryTimeoutContext.ThrowingSupplier<T, E> supplier) throws E- Throws:
E
-