Record Class MonitoringTopicMetricsProvider.MonitoringTopicMetrics
java.lang.Object
java.lang.Record
pl.allegro.tech.hermes.management.infrastructure.metrics.MonitoringTopicMetricsProvider.MonitoringTopicMetrics
- Enclosing interface:
MonitoringTopicMetricsProvider
public static record MonitoringTopicMetricsProvider.MonitoringTopicMetrics(pl.allegro.tech.hermes.api.MetricDecimalValue rate, pl.allegro.tech.hermes.api.MetricDecimalValue deliveryRate, pl.allegro.tech.hermes.api.MetricDecimalValue throughput)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMonitoringTopicMetrics(pl.allegro.tech.hermes.api.MetricDecimalValue rate, pl.allegro.tech.hermes.api.MetricDecimalValue deliveryRate, pl.allegro.tech.hermes.api.MetricDecimalValue throughput) Creates an instance of aMonitoringTopicMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionpl.allegro.tech.hermes.api.MetricDecimalValueReturns the value of thedeliveryRaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pl.allegro.tech.hermes.api.MetricDecimalValuerate()Returns the value of theraterecord component.pl.allegro.tech.hermes.api.MetricDecimalValueReturns the value of thethroughputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MonitoringTopicMetrics
public MonitoringTopicMetrics(pl.allegro.tech.hermes.api.MetricDecimalValue rate, pl.allegro.tech.hermes.api.MetricDecimalValue deliveryRate, pl.allegro.tech.hermes.api.MetricDecimalValue throughput) Creates an instance of aMonitoringTopicMetricsrecord class.- Parameters:
rate- the value for theraterecord componentdeliveryRate- the value for thedeliveryRaterecord componentthroughput- the value for thethroughputrecord 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). -
rate
public pl.allegro.tech.hermes.api.MetricDecimalValue rate()Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-
deliveryRate
public pl.allegro.tech.hermes.api.MetricDecimalValue deliveryRate()Returns the value of thedeliveryRaterecord component.- Returns:
- the value of the
deliveryRaterecord component
-
throughput
public pl.allegro.tech.hermes.api.MetricDecimalValue throughput()Returns the value of thethroughputrecord component.- Returns:
- the value of the
throughputrecord component
-