Class BaseRelativeTime
- java.lang.Object
-
- org.apache.accumulo.server.util.time.BaseRelativeTime
-
- All Implemented Interfaces:
ProvidesTime
- Direct Known Subclasses:
RelativeTime
public class BaseRelativeTime extends Object implements ProvidesTime
Provide time from a local source and a hint from a time source. RelativeTime and BaseRelativeTime are separated to provide unit tests of the core functionality of Relative timekeeping.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
currentTime()
void
updateTime(long advice)
-
-
-
Method Detail
-
currentTime
public long currentTime()
- Specified by:
currentTime
in interfaceProvidesTime
-
updateTime
public void updateTime(long advice)
-
-