org.springframework.boot.context.metrics.buffering

Class StartupTimeline.TimelineEvent

  • java.lang.Object
    • org.springframework.boot.context.metrics.buffering.StartupTimeline.TimelineEvent
  • Enclosing class:
    StartupTimeline


    public static class StartupTimeline.TimelineEvent
    extends java.lang.Object
    Event on the current StartupTimeline. Each event has a start/end time, a precise duration and the complete StartupStep information associated with it.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.time.Duration getDuration()
      Return the duration of this event, i.e.
      java.time.Instant getEndTime()
      Return the end time of this event.
      java.time.Instant getStartTime()
      Return the start time of this event.
      org.springframework.core.metrics.StartupStep getStartupStep()
      Return the StartupStep information for this event.
      • Methods inherited from class java.lang.Object

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

      • getStartTime

        public java.time.Instant getStartTime()
        Return the start time of this event.
        Returns:
        the start time
      • getEndTime

        public java.time.Instant getEndTime()
        Return the end time of this event.
        Returns:
        the end time
      • getDuration

        public java.time.Duration getDuration()
        Return the duration of this event, i.e. the processing time of the associated StartupStep with nanoseconds precision.
        Returns:
        the event duration
      • getStartupStep

        public org.springframework.core.metrics.StartupStep getStartupStep()
        Return the StartupStep information for this event.
        Returns:
        the step information.