Record Class CanaryDeployment.Probe
java.lang.Object
java.lang.Record
org.j7m.middleware.cluster.CanaryDeployment.Probe
- Record Components:
observedAt- observation wall timesuccesses- successful candidate responseserrors- failed candidate responsestotalLatencyNanos- sum of candidate elapsed monotonic durations
- Enclosing class:
CanaryDeployment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longerrors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theobservedAtrecord component.longReturns the value of thesuccessesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalLatencyNanosrecord component.
-
Constructor Details
-
Probe
Validates immutable bounded observations.- Parameters:
observedAt- observation timesuccesses- nonnegative successeserrors- nonnegative errorstotalLatencyNanos- nonnegative accumulated latency- Throws:
IllegalArgumentException- for invalid counts
-
-
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. -
observedAt
Returns the value of theobservedAtrecord component.- Returns:
- the value of the
observedAtrecord component
-
successes
-
errors
-
totalLatencyNanos
public long totalLatencyNanos()Returns the value of thetotalLatencyNanosrecord component.- Returns:
- the value of the
totalLatencyNanosrecord component
-