public class TimeServiceFactory extends Object
TimeService
Constructor and Description |
---|
TimeServiceFactory() |
Modifier and Type | Method and Description |
---|---|
static TimeService |
getControllableTimeService()
Deprecated.
Use
ControllableTimeService to obtain a TimeService |
static TimeService |
getControllableTimeService(long initTargetTimeMsec)
Return
ControllableTimeService instance initialized with the time specified in initTargetTimeMsec |
static TimeService |
getWallClockTimeService()
Deprecated.
Use
WallClockTimeService to obtain a TimeService |
@Deprecated public static TimeService getWallClockTimeService()
WallClockTimeService
to obtain a TimeServiceWallClockTimeService
instance. This class uses the system clock internally@Deprecated public static TimeService getControllableTimeService()
ControllableTimeService
to obtain a TimeServiceControllableTimeService
instance initialized with the current system timepublic static TimeService getControllableTimeService(long initTargetTimeMsec)
ControllableTimeService
instance initialized with the time specified in initTargetTimeMsecinitTargetTimeMsec
- Initial time of the TimeService in milliseconds