Package alluxio.clock

Class 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 new Clock 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)  
      • Methods inherited from class java.time.Clock

        equals, fixed, hashCode, offset, system, systemDefaultZone, systemUTC, tick, tickMillis, tickMinutes, tickSeconds
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemClock

        public SystemClock()
        Constructs a new Clock which reports the actual time.
    • Method Detail

      • millis

        public long millis()
        Overrides:
        millis in class java.time.Clock
      • getZone

        public java.time.ZoneId getZone()
        Specified by:
        getZone in class java.time.Clock
      • withZone

        public java.time.Clock withZone​(java.time.ZoneId zone)
        Specified by:
        withZone in class java.time.Clock
      • instant

        public java.time.Instant instant()
        Specified by:
        instant in class java.time.Clock