|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.search.engine.impl.DefaultTimingSource
public final class DefaultTimingSource
Default implementation for a TimingSource
Constructor Summary | |
---|---|
DefaultTimingSource()
|
Method Summary | |
---|---|
void |
ensureInitialized()
Needs to be invoked at least once before TimingSource.getMonotonicTimeEstimate() can be used. |
long |
getMonotonicTimeEstimate()
Returns and approximation of System.nanoTime() . |
void |
stop()
Invoked on SearchFactory shutdown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTimingSource()
Method Detail |
---|
public long getMonotonicTimeEstimate()
TimingSource
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.
getMonotonicTimeEstimate
in interface TimingSource
public void ensureInitialized()
TimingSource
TimingSource.getMonotonicTimeEstimate()
can be used.
Safe to be invoked multiple times.
ensureInitialized
in interface TimingSource
public void stop()
TimingSource
stop
in interface TimingSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |