Record Class BrowserObservabilityRecorder.NetworkExchange
java.lang.Object
java.lang.Record
com.shaft.tools.io.internal.BrowserObservabilityRecorder.NetworkExchange
- Enclosing class:
BrowserObservabilityRecorder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.method()Returns the value of themethodrecord component.Returns the value of therequestHeadersrecord component.longReturns the value of therequestSizeBytesrecord component.longReturns the value of thestartNanosrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
NetworkExchange
public NetworkExchange(boolean enabled, String id, String method, String url, Map<String, String> requestHeaders, long requestSizeBytes, long startNanos) Creates an instance of aNetworkExchangerecord class.- Parameters:
enabled- the value for theenabledrecord componentid- the value for theidrecord componentmethod- the value for themethodrecord componenturl- the value for theurlrecord componentrequestHeaders- the value for therequestHeadersrecord componentrequestSizeBytes- the value for therequestSizeBytesrecord componentstartNanos- the value for thestartNanosrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
requestHeaders
-
requestSizeBytes
public long requestSizeBytes()Returns the value of therequestSizeBytesrecord component.- Returns:
- the value of the
requestSizeBytesrecord component
-
startNanos
public long startNanos()Returns the value of thestartNanosrecord component.- Returns:
- the value of the
startNanosrecord component
-