Package alluxio.clock
Class SystemClock
- java.lang.Object
-
- java.time.Clock
-
- alluxio.clock.SystemClock
-
public final class SystemClock extends java.time.Clock
A clock representing the current time as reported by the operating system.
-
-
Constructor Summary
Constructors Constructor Description SystemClock()
Constructs a newClock
which reports the actual time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.ZoneId
getZone()
java.time.Instant
instant()
long
millis()
java.time.Clock
withZone(java.time.ZoneId zone)
-
-
-
Method Detail
-
millis
public long millis()
- Overrides:
millis
in classjava.time.Clock
-
getZone
public java.time.ZoneId getZone()
- Specified by:
getZone
in classjava.time.Clock
-
withZone
public java.time.Clock withZone(java.time.ZoneId zone)
- Specified by:
withZone
in classjava.time.Clock
-
instant
public java.time.Instant instant()
- Specified by:
instant
in classjava.time.Clock
-
-