Class SessionTimingEntry

  • All Implemented Interfaces:
    TimingEntry

    public class SessionTimingEntry
    extends Object
    implements TimingEntry
    An implementation of TimingEntry for the Session monitoring component. This simple implementation simply stores and then provides the duration again.
    • Constructor Detail

      • SessionTimingEntry

        public SessionTimingEntry​(long duration)
        Constructor, generating a new SessionTimingEntry with the provided duration
        Parameters:
        duration - length of time the operation took (in ms)
    • Method Detail

      • getDuration

        public long getDuration()
        Retrieves the length of time spent executing the monitored operation.
        Specified by:
        getDuration in interface TimingEntry
        Returns:
        the length of time spent on an operation, in ms.