java.lang.Object
com.aquima.interactions.foundation.timetracker.NullTracker
All Implemented Interfaces:
ITimeTracker, Serializable

public class NullTracker extends Object implements ITimeTracker
Utility class to disable time tracking.
Since:
5.0
Author:
Jon van Leuven
See Also:
  • Constructor Details

    • NullTracker

      public NullTracker()
  • Method Details

    • end

      public long end(String name)
      Always returns 0.
      Specified by:
      end in interface ITimeTracker
      Parameters:
      name - name of the tracker, cannot be null
      Returns:
      the time in milliseconds when the tracker is ended.
    • endAll

      public void endAll()
      Description copied from interface: ITimeTracker
      Ends all open time trackers.
      Specified by:
      endAll in interface ITimeTracker
    • getEndMillis

      public long getEndMillis()
      Always returns 0.
      Specified by:
      getEndMillis in interface ITimeTracker
      Returns:
      the time in milliseconds when the tracker is ended.
    • getName

      public String getName()
      Always returns null.
      Specified by:
      getName in interface ITimeTracker
      Returns:
      The name of the time tracker.
    • getStartMillis

      public long getStartMillis()
      Always returns 0.
      Specified by:
      getStartMillis in interface ITimeTracker
      Returns:
      the time in milliseconds when the tracker is started.
    • getTotalMillis

      public long getTotalMillis()
      Always returns 0.
      Specified by:
      getTotalMillis in interface ITimeTracker
      Returns:
      the total processing time of the time tracker in milliseconds.
    • getType

      public String getType()
      Always returns null.
      Specified by:
      getType in interface ITimeTracker
      Returns:
      the type of the time tracker.
    • iterateChilds

      public void iterateChilds(IChildVisitor visitor)
      Description copied from interface: ITimeTracker
      Iterates all direct sub time trackers.
      Specified by:
      iterateChilds in interface ITimeTracker
      Parameters:
      visitor - to process children
    • log

      public void log()
      Description copied from interface: ITimeTracker
      Logs the time tracker result to a default logger.
      Specified by:
      log in interface ITimeTracker
    • log

      public void log(Logger log)
      Description copied from interface: ITimeTracker
      Logs the time tracker result to a custom logger.
      Specified by:
      log in interface ITimeTracker
      Parameters:
      log - The logger that should be used to write the result to.
    • start

      public void start(String name, String type)
      Description copied from interface: ITimeTracker
      Start a new sub time tracker.
      Specified by:
      start in interface ITimeTracker
      Parameters:
      name - name of the tracker, cannot be null
      type - type of tracker
    • start

      public void start(String name)
      Description copied from interface: ITimeTracker
      Start a new sub time tracker.
      Specified by:
      start in interface ITimeTracker
      Parameters:
      name - name of the tracker, cannot be null
    • toXml

      public IXmlElement toXml()
      Always returns null.
      Specified by:
      toXml in interface ITimeTracker
      Returns:
      an XML representation of the time tracker.