Package alluxio.time
Class TimeContext
- java.lang.Object
-
- alluxio.time.TimeContext
-
public final class TimeContext extends java.lang.Object
Context for managing time.
-
-
Field Summary
Fields Modifier and Type Field Description static TimeContext
SYSTEM
-
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()
-
-
-
Field Detail
-
SYSTEM
public static final TimeContext SYSTEM
-
-
Constructor Detail
-
TimeContext
public TimeContext(java.time.Clock clock, Sleeper sleeper)
- Parameters:
clock
- the clock for this contextsleeper
- 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
-
-