Package io.airlift.http.server.jetty
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
ConstructorsConstructorDescriptionRequestTiming
(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 aRequestTiming
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of therequestStarted
record component.Returns the value of theresponseContentInterarrivalStats
record component.io.airlift.units.Duration
Returns the value of thetimeToCompletion
record component.io.airlift.units.Duration
Returns the value of thetimeToDispatch
record component.io.airlift.units.Duration
Returns the value of thetimeToFirstByte
record component.io.airlift.units.Duration
Returns the value of thetimeToHandling
record component.io.airlift.units.Duration
Returns the value of thetimeToLastByte
record component.final String
toString()
Returns a string representation of this record class.
-
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 aRequestTiming
record class.- Parameters:
requestStarted
- the value for therequestStarted
record componenttimeToDispatch
- the value for thetimeToDispatch
record componenttimeToHandling
- the value for thetimeToHandling
record componenttimeToFirstByte
- the value for thetimeToFirstByte
record componenttimeToLastByte
- the value for thetimeToLastByte
record componenttimeToCompletion
- the value for thetimeToCompletion
record componentresponseContentInterarrivalStats
- the value for theresponseContentInterarrivalStats
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
requestStarted
Returns the value of therequestStarted
record component.- Returns:
- the value of the
requestStarted
record component
-
timeToDispatch
public io.airlift.units.Duration timeToDispatch()Returns the value of thetimeToDispatch
record component.- Returns:
- the value of the
timeToDispatch
record component
-
timeToHandling
public io.airlift.units.Duration timeToHandling()Returns the value of thetimeToHandling
record component.- Returns:
- the value of the
timeToHandling
record component
-
timeToFirstByte
public io.airlift.units.Duration timeToFirstByte()Returns the value of thetimeToFirstByte
record component.- Returns:
- the value of the
timeToFirstByte
record component
-
timeToLastByte
public io.airlift.units.Duration timeToLastByte()Returns the value of thetimeToLastByte
record component.- Returns:
- the value of the
timeToLastByte
record component
-
timeToCompletion
public io.airlift.units.Duration timeToCompletion()Returns the value of thetimeToCompletion
record component.- Returns:
- the value of the
timeToCompletion
record component
-
responseContentInterarrivalStats
Returns the value of theresponseContentInterarrivalStats
record component.- Returns:
- the value of the
responseContentInterarrivalStats
record component
-