Record Class StreamFlattenMetrics.StreamComputationMetric
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.bulk.introspection.StreamFlattenMetrics.StreamComputationMetric
- Enclosing class:
- StreamFlattenMetrics
-
Constructor Summary
ConstructorsConstructorDescriptionStreamComputationMetric(Number lag, Number latency, Number pos) Creates an instance of aStreamComputationMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lag()Returns the value of thelagrecord component.latency()Returns the value of thelatencyrecord component.pos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamComputationMetric
public StreamComputationMetric(@Nullable Number lag, @Nullable Number latency, @Nullable Number pos) Creates an instance of aStreamComputationMetricrecord class.- Parameters:
lag- the value for thelagrecord componentlatency- the value for thelatencyrecord componentpos- the value for theposrecord 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). -
lag
Returns the value of thelagrecord component.- Returns:
- the value of the
lagrecord component
-
latency
Returns the value of thelatencyrecord component.- Returns:
- the value of the
latencyrecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-