Record Class NetworkTiming
java.lang.Object
java.lang.Record
com.shaft.capture.model.network.NetworkTiming
- Record Components:
blocked- time waiting for a network connection to become availabledns- time spent resolving DNSconnect- time spent establishing the connectionsend- time spent sending the requestttfb- time to first byte of the responsereceive- time spent downloading the response body
public record NetworkTiming(Duration blocked, Duration dns, Duration connect, Duration send, Duration ttfb, Duration receive)
extends Record
Performance timing measurements for a network transaction, mirroring the
conventional browser DevTools/HAR timing breakdown. All durations are
nullable and may be absent when a phase was not measured or does not apply.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblocked()Returns the value of theblockedrecord component.connect()Returns the value of theconnectrecord component.dns()Returns the value of thednsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.receive()Returns the value of thereceiverecord component.send()Returns the value of thesendrecord component.final StringtoString()Returns a string representation of this record class.ttfb()Returns the value of thettfbrecord component.
-
Constructor Details
-
NetworkTiming
-
-
Method Details
-
toString
-
hashCode
-
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). -
blocked
-
dns
-
connect
-
send
-
ttfb
-
receive
-