Class DefaultTimeTrackerFactory
java.lang.Object
com.aquima.interactions.framework.tracking.DefaultTimeTrackerFactory
- All Implemented Interfaces:
ITimeTrackerFactory
Default time tracker factory that returns a TimeTracker or a NullTracker instance for each request.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTimeTrackerFactory
(boolean returnNullTracker) Construct a time tracker factory with a boolean indicating if a NullTracker or TimeTracker instance should be created. -
Method Summary
Modifier and TypeMethodDescriptioncreateTimeTracker
(String name) This method should create a time tracker object for with the specified name.
-
Constructor Details
-
DefaultTimeTrackerFactory
public DefaultTimeTrackerFactory(boolean returnNullTracker) Construct a time tracker factory with a boolean indicating if a NullTracker or TimeTracker instance should be created.- Parameters:
returnNullTracker
- When true, this factory creates a NullTracker, otherwise it creates an instance of TimeTracker.
-
-
Method Details
-
createTimeTracker
Description copied from interface:ITimeTrackerFactory
This method should create a time tracker object for with the specified name.- Specified by:
createTimeTracker
in interfaceITimeTrackerFactory
- Parameters:
name
- The name of the time tracker that should be created.- Returns:
- Time tracker implementation for the specified name.
-