public interface TimingSource
TimeLimitingCollector.TimeLimitingCollector(org.apache.lucene.search.Collector, org.apache.lucene.util.Counter, long)
used by Hibernate Search when time limits are enabled on fulltext queries.Modifier and Type | Method and Description |
---|---|
void |
ensureInitialized()
Needs to be invoked at least once before
getMonotonicTimeEstimate() can be used. |
long |
getMonotonicTimeEstimate()
Returns an approximation of
System.nanoTime() . |
void |
stop()
Invoked on SearchIntegrator shutdown.
|
long getMonotonicTimeEstimate()
System.nanoTime()
.
Performance should be preferred over accuracy by the implementation, but the value is monotonic
and expresses time in milliseconds, however, subsequent invocations could return the same value.void stop()
void ensureInitialized()
getMonotonicTimeEstimate()
can be used.
Safe to be invoked multiple times.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved