Package com.streambase.sb.unittest
Class TimeServiceFactory
- java.lang.Object
-
- com.streambase.sb.unittest.TimeServiceFactory
-
public class TimeServiceFactory extends Object
Contains static methods for creating concreteTimeService
- Since:
- 7.4
-
-
Constructor Summary
Constructors Constructor Description TimeServiceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TimeService
getControllableTimeService()
Deprecated.UseControllableTimeService
to obtain a TimeServicestatic TimeService
getControllableTimeService(long initTargetTimeMsec)
ReturnControllableTimeService
instance initialized with the time specified in initTargetTimeMsecstatic TimeService
getWallClockTimeService()
Deprecated.UseWallClockTimeService
to obtain a TimeService
-
-
-
Method Detail
-
getWallClockTimeService
@Deprecated public static TimeService getWallClockTimeService()
Deprecated.UseWallClockTimeService
to obtain a TimeServiceReturnWallClockTimeService
instance. This class uses the system clock internally- Returns:
- WallClockTimeService object
-
getControllableTimeService
@Deprecated public static TimeService getControllableTimeService()
Deprecated.UseControllableTimeService
to obtain a TimeServiceReturnControllableTimeService
instance initialized with the current system time- Returns:
- ControllableTimeService object
-
getControllableTimeService
public static TimeService getControllableTimeService(long initTargetTimeMsec)
ReturnControllableTimeService
instance initialized with the time specified in initTargetTimeMsec- Parameters:
initTargetTimeMsec
- Initial time of the TimeService in milliseconds- Returns:
- ControllableTimeService object
-
-