Class TimeServiceFactory


  • public class TimeServiceFactory
    extends Object
    Contains static methods for creating concrete TimeService
    Since:
    7.4
    • Constructor Detail

      • TimeServiceFactory

        public TimeServiceFactory()
    • Method Detail

      • getWallClockTimeService

        @Deprecated
        public static TimeService getWallClockTimeService()
        Deprecated.
        Use WallClockTimeService to obtain a TimeService
        Return WallClockTimeService instance. This class uses the system clock internally
        Returns:
        WallClockTimeService object
      • getControllableTimeService

        @Deprecated
        public static TimeService getControllableTimeService()
        Deprecated.
        Use ControllableTimeService to obtain a TimeService
        Return ControllableTimeService instance initialized with the current system time
        Returns:
        ControllableTimeService object
      • getControllableTimeService

        public static TimeService getControllableTimeService​(long initTargetTimeMsec)
        Return ControllableTimeService instance initialized with the time specified in initTargetTimeMsec
        Parameters:
        initTargetTimeMsec - Initial time of the TimeService in milliseconds
        Returns:
        ControllableTimeService object