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