Package org.acemq.spring.boot.actuate
Record Class AceMqEndpoint.Counters
java.lang.Object
java.lang.Record
org.acemq.spring.boot.actuate.AceMqEndpoint.Counters
- Record Components:
inFlight- being handled nowacknowledged- handled and acknowledgedrejected- deliveries rejectedretried- deliveries retried
- Enclosing class:
AceMqEndpoint
public static record AceMqEndpoint.Counters(long inFlight, long acknowledged, long rejected, long retried)
extends Record
A running listener's counters, from its consumer group.
-
Constructor Summary
ConstructorsConstructorDescriptionCounters(long inFlight, long acknowledged, long rejected, long retried) Creates an instance of aCountersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theacknowledgedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longinFlight()Returns the value of theinFlightrecord component.longrejected()Returns the value of therejectedrecord component.longretried()Returns the value of theretriedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Counters
public Counters(long inFlight, long acknowledged, long rejected, long retried) Creates an instance of aCountersrecord class.- Parameters:
inFlight- the value for theinFlightrecord componentacknowledged- the value for theacknowledgedrecord componentrejected- the value for therejectedrecord componentretried- the value for theretriedrecord 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 with '=='. -
inFlight
public long inFlight()Returns the value of theinFlightrecord component.- Returns:
- the value of the
inFlightrecord component
-
acknowledged
public long acknowledged()Returns the value of theacknowledgedrecord component.- Returns:
- the value of the
acknowledgedrecord component
-
rejected
public long rejected()Returns the value of therejectedrecord component.- Returns:
- the value of the
rejectedrecord component
-
retried
public long retried()Returns the value of theretriedrecord component.- Returns:
- the value of the
retriedrecord component
-