Class TimeOut


  • public class TimeOut
    extends Object
    Timeout tool to ease checking time left, time elapsed, and waiting on a condition.
    • Constructor Detail

      • TimeOut

        public TimeOut​(long timeout,
                       TimeUnit unit,
                       org.apache.solr.common.util.TimeSource timeSource)
        Parameters:
        timeout - after this maximum time, hasTimedOut() will return true.
        unit - the time unit of the timeout argument.
        timeSource - the source of the time.