Package alluxio.time

Class TimeContext


  • public final class TimeContext
    extends java.lang.Object
    Context for managing time.
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeContext​(java.time.Clock clock, Sleeper sleeper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.Clock getClock()  
      Sleeper getSleeper()  
      • Methods inherited from class java.lang.Object

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

      • TimeContext

        public TimeContext​(java.time.Clock clock,
                           Sleeper sleeper)
        Parameters:
        clock - the clock for this context
        sleeper - the sleeper for this context
    • Method Detail

      • getClock

        public java.time.Clock getClock()
        Returns:
        the clock for this context
      • getSleeper

        public Sleeper getSleeper()
        Returns:
        the sleeper for thix context