Record Class RequestTiming

java.lang.Object
java.lang.Record
io.airlift.http.server.jetty.RequestTiming

public record RequestTiming(Instant requestStarted, io.airlift.units.Duration timeToDispatch, io.airlift.units.Duration timeToHandling, io.airlift.units.Duration timeToFirstByte, io.airlift.units.Duration timeToLastByte, io.airlift.units.Duration timeToCompletion, DoubleSummaryStats responseContentInterarrivalStats) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    RequestTiming(Instant requestStarted, io.airlift.units.Duration timeToDispatch, io.airlift.units.Duration timeToHandling, io.airlift.units.Duration timeToFirstByte, io.airlift.units.Duration timeToLastByte, io.airlift.units.Duration timeToCompletion, DoubleSummaryStats responseContentInterarrivalStats)
    Creates an instance of a RequestTiming record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the requestStarted record component.
    Returns the value of the responseContentInterarrivalStats record component.
    io.airlift.units.Duration
    Returns the value of the timeToCompletion record component.
    io.airlift.units.Duration
    Returns the value of the timeToDispatch record component.
    io.airlift.units.Duration
    Returns the value of the timeToFirstByte record component.
    io.airlift.units.Duration
    Returns the value of the timeToHandling record component.
    io.airlift.units.Duration
    Returns the value of the timeToLastByte record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RequestTiming

      public RequestTiming(Instant requestStarted, io.airlift.units.Duration timeToDispatch, io.airlift.units.Duration timeToHandling, io.airlift.units.Duration timeToFirstByte, io.airlift.units.Duration timeToLastByte, io.airlift.units.Duration timeToCompletion, DoubleSummaryStats responseContentInterarrivalStats)
      Creates an instance of a RequestTiming record class.
      Parameters:
      requestStarted - the value for the requestStarted record component
      timeToDispatch - the value for the timeToDispatch record component
      timeToHandling - the value for the timeToHandling record component
      timeToFirstByte - the value for the timeToFirstByte record component
      timeToLastByte - the value for the timeToLastByte record component
      timeToCompletion - the value for the timeToCompletion record component
      responseContentInterarrivalStats - the value for the responseContentInterarrivalStats record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • requestStarted

      public Instant requestStarted()
      Returns the value of the requestStarted record component.
      Returns:
      the value of the requestStarted record component
    • timeToDispatch

      public io.airlift.units.Duration timeToDispatch()
      Returns the value of the timeToDispatch record component.
      Returns:
      the value of the timeToDispatch record component
    • timeToHandling

      public io.airlift.units.Duration timeToHandling()
      Returns the value of the timeToHandling record component.
      Returns:
      the value of the timeToHandling record component
    • timeToFirstByte

      public io.airlift.units.Duration timeToFirstByte()
      Returns the value of the timeToFirstByte record component.
      Returns:
      the value of the timeToFirstByte record component
    • timeToLastByte

      public io.airlift.units.Duration timeToLastByte()
      Returns the value of the timeToLastByte record component.
      Returns:
      the value of the timeToLastByte record component
    • timeToCompletion

      public io.airlift.units.Duration timeToCompletion()
      Returns the value of the timeToCompletion record component.
      Returns:
      the value of the timeToCompletion record component
    • responseContentInterarrivalStats

      public DoubleSummaryStats responseContentInterarrivalStats()
      Returns the value of the responseContentInterarrivalStats record component.
      Returns:
      the value of the responseContentInterarrivalStats record component