Package org.microproxy.extras
Record Class ClientReplay.Result
java.lang.Object
java.lang.Record
org.microproxy.extras.ClientReplay.Result
- Record Components:
statuses- the status each request got, in recorded order; -1 where it failed
- Enclosing class:
ClientReplay
What a replay did.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfailed()Returns how many requests got no response (connection or protocol failures).final inthashCode()Returns a hash code value for this object.intsent()Returns how many requests were sent.statuses()Returns the value of thestatusesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Copies the statuses.
-
-
Method Details
-
sent
public int sent()Returns how many requests were sent.- Returns:
- how many requests were sent
-
failed
public int failed()Returns how many requests got no response (connection or protocol failures).- Returns:
- how many requests got no response (connection or protocol failures)
-
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). -
statuses
Returns the value of thestatusesrecord component.- Returns:
- the value of the
statusesrecord component
-