Class RealTimeTimeProvider
- java.lang.Object
-
- com.sportradar.livedata.sdk.common.timer.TimeProviderBase
-
- com.sportradar.livedata.sdk.common.timer.RealTimeTimeProvider
-
public class RealTimeTimeProvider extends TimeProviderBase
ATimeProviderBase
implementation which uses system time- Author:
- uros.bregar
-
-
Field Summary
-
Fields inherited from class com.sportradar.livedata.sdk.common.timer.TimeProviderBase
current
-
-
Constructor Summary
Constructors Constructor Description RealTimeTimeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getDate()
Gets theDate
specifying the current date and time.org.joda.time.DateTime
getDateTime()
When overridden in derived class, gets theDateTime
specifying the current date and time.-
Methods inherited from class com.sportradar.livedata.sdk.common.timer.TimeProviderBase
getCurrent, getCurrentTime, getFutureDate, resetToRealTime, setCurrent
-
-
-
-
Method Detail
-
getDate
public Date getDate()
Gets theDate
specifying the current date and time.- Specified by:
getDate
in classTimeProviderBase
- Returns:
- The
Date
specifying the current date and time.
-
getDateTime
public org.joda.time.DateTime getDateTime()
When overridden in derived class, gets theDateTime
specifying the current date and time.- Specified by:
getDateTime
in classTimeProviderBase
- Returns:
- the
DateTime
specifying the current date and time.
-
-