Record Class AcknowledgerMetrics
java.lang.Object
java.lang.Record
io.aleph0.yap.messaging.core.AcknowledgerMetrics
public record AcknowledgerMetrics(long acknowledged, long retired, long retiredSuccess, long retiredFailure, long awaiting)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAcknowledgerMetrics(long acknowledged, long retired, long retiredSuccess, long retiredFailure, long awaiting) Creates an instance of aAcknowledgerMetricsrecord 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.longretired()Returns the value of theretiredrecord component.longReturns the value of theretiredFailurerecord component.longReturns the value of theretiredSuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AcknowledgerMetrics
public AcknowledgerMetrics(long acknowledged, long retired, long retiredSuccess, long retiredFailure, long awaiting) Creates an instance of aAcknowledgerMetricsrecord class.- Parameters:
acknowledged- the value for theacknowledgedrecord componentretired- the value for theretiredrecord componentretiredSuccess- the value for theretiredSuccessrecord componentretiredFailure- the value for theretiredFailurerecord 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. -
acknowledged
public long acknowledged()Returns the value of theacknowledgedrecord component.- Returns:
- the value of the
acknowledgedrecord component
-
retired
public long retired()Returns the value of theretiredrecord component.- Returns:
- the value of the
retiredrecord component
-
retiredSuccess
public long retiredSuccess()Returns the value of theretiredSuccessrecord component.- Returns:
- the value of the
retiredSuccessrecord component
-
retiredFailure
public long retiredFailure()Returns the value of theretiredFailurerecord component.- Returns:
- the value of the
retiredFailurerecord component
-
awaiting
public long awaiting()Returns the value of theawaitingrecord component.- Returns:
- the value of the
awaitingrecord component
-