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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.oak.stats.Clock
Clock.Fast, Clock.Virtual
-
-
Constructor Summary
Constructors Constructor Description Fast(ScheduledExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getTime()
Returns the current time in milliseconds since the epoch.String
toString()
-
Methods inherited from class org.apache.jackrabbit.oak.stats.Clock
getDate, getDateIncreasing, getDateMonotonic, getTimeIncreasing, getTimeMonotonic, getZone, instant, waitUntil, withZone
-
Methods inherited from class java.time.Clock
equals, fixed, hashCode, millis, offset, system, systemDefaultZone, systemUTC, tick, tickMillis, tickMinutes, tickSeconds
-
-
-
-
Constructor Detail
-
Fast
public Fast(ScheduledExecutorService executor)
-
-
Method Detail
-
getTime
public long getTime()
Description copied from class:Clock
Returns the current time in milliseconds since the epoch.- Specified by:
getTime
in classClock
- Returns:
- current time in milliseconds since the epoch
- See Also:
System.currentTimeMillis()
,Clock.millis()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-