|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimingSource
Lucene delegates responsibility for efficient time tracking to an external service;
this is needed for example by the TimeLimitingCollector.TimeLimitingCollector(Collector, Counter, long)
used by Hibernate Search when time limits are enabled on fulltext queries.
Method Summary | |
---|---|
void |
ensureInitialized()
Needs to be invoked at least once before getMonotonicTimeEstimate() can be used. |
long |
getMonotonicTimeEstimate()
Returns and approximation of System.nanoTime() . |
void |
stop()
Invoked on SearchFactory shutdown. |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |