Package com.github.ambry.store
Class TimeRange
- java.lang.Object
-
- com.github.ambry.store.TimeRange
-
public class TimeRange extends java.lang.Object
A TimeRange is the range between two times in milliseconds
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getEndTimeInMs()
long
getStartTimeInMs()
java.lang.String
toString()
-
-
-
Constructor Detail
-
TimeRange
public TimeRange(long referenceTimeInMs, long errorMarginInMs)
Instantiates aTimeRange
referring to a reference time with an allowed error margin- Parameters:
referenceTimeInMs
- the reference time in milliseconds that thisTimeRange
is referring toerrorMarginInMs
- the allowable error margin in milliseconds
-
-
Method Detail
-
getStartTimeInMs
public long getStartTimeInMs()
- Returns:
- the start time in Secs that this
TimeRange
is referring to
-
getEndTimeInMs
public long getEndTimeInMs()
- Returns:
- the end time in Secs that this
TimeRange
is referring to
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-