Class TimeOut

java.lang.Object
org.apache.solr.util.TimeOut

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

    • 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.
  • Method Details