Record Class RelayMetrics
java.lang.Object
java.lang.Record
io.aleph0.yap.messaging.core.RelayMetrics
-
Constructor Summary
ConstructorsConstructorDescriptionRelayMetrics(long submitted, long acknowledged, long awaiting) Creates an instance of aRelayMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theacknowledgedrecord component.longawaiting()Returns the value of theawaitingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thesubmittedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RelayMetrics
public RelayMetrics(long submitted, long acknowledged, long awaiting) Creates an instance of aRelayMetricsrecord class.- Parameters:
submitted- the value for thesubmittedrecord componentacknowledged- the value for theacknowledgedrecord componentawaiting- the value for theawaitingrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
submitted
public long submitted()Returns the value of thesubmittedrecord component.- Returns:
- the value of the
submittedrecord component
-
acknowledged
public long acknowledged()Returns the value of theacknowledgedrecord component.- Returns:
- the value of the
acknowledgedrecord component
-
awaiting
public long awaiting()Returns the value of theawaitingrecord component.- Returns:
- the value of the
awaitingrecord component
-