Package org.apache.jackrabbit.oak.stats
Class Clock.Fast
java.lang.Object
java.time.Clock
org.apache.jackrabbit.oak.stats.Clock
org.apache.jackrabbit.oak.stats.Clock.Fast
- All Implemented Interfaces:
Closeable,AutoCloseable,InstantSource
- Enclosing class:
Clock
Fast clock implementation whose
getTime() method returns
instantaneously thanks to a background task that takes care of the
actual time-keeping work.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jackrabbit.oak.stats.Clock
Clock.Fast, Clock.Virtual -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.jackrabbit.oak.stats.Clock
getDate, getDateIncreasing, getDateMonotonic, getTimeIncreasing, getTimeMonotonic, getZone, instant, waitUntil, withZoneMethods inherited from class java.time.Clock
equals, fixed, hashCode, millis, offset, system, systemDefaultZone, systemUTC, tick, tickMillis, tickMinutes, tickSeconds
-
Constructor Details
-
Fast
-
-
Method Details
-
getTime
public long getTime()Description copied from class:ClockReturns the current time in milliseconds since the epoch. -
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-