Class PerformanceLogRecord


  • public class PerformanceLogRecord
    extends java.lang.Object
    Class to register a performance log record.
    Since:
    5.10
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long durationMs
      Duration of the recorded event in milliseconds.
      private java.lang.String name
      Name of the recorded event.
    • Constructor Summary

      Constructors 
      Constructor Description
      PerformanceLogRecord​(java.lang.String name, long durationMs)
      Create a new performance log record for an event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getDurationMs()
      Get the duration in milliseconds of the recorded event.
      java.lang.String getName()
      Get the name of the recorded event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
        Name of the recorded event.
      • durationMs

        private long durationMs
        Duration of the recorded event in milliseconds.
    • Constructor Detail

      • PerformanceLogRecord

        public PerformanceLogRecord​(java.lang.String name,
                                    long durationMs)
        Create a new performance log record for an event.
        Parameters:
        name - name of the event.
        durationMs - duration in milliseconds of the event.
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name of the recorded event.
        Returns:
        name of the recorded event.
      • getDurationMs

        public long getDurationMs()
        Get the duration in milliseconds of the recorded event.
        Returns:
        duration in milliseconds of the recorded event.