Record Class QueueMetricsSnapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.QueueMetricsSnapshot
- Record Components:
enqueueCount- enqueue operationsleaseCount- lease operationsackCount- acknowledge operationsnackCount- negative acknowledge operationsretryCount- retry transitionsdeadLetterCount- dead-letter transitionsduplicateCount- duplicate enqueue decisionsoutboxRecorded- recorded outbox entriesoutboxPublished- published outbox entriesoutboxFailed- failed outbox entriesinboxRecorded- recorded inbox identitiesinboxSuppressed- suppressed inbox duplicates
- All Implemented Interfaces:
Serializable
public record QueueMetricsSnapshot(long enqueueCount, long leaseCount, long ackCount, long nackCount, long retryCount, long deadLetterCount, long duplicateCount, long outboxRecorded, long outboxPublished, long outboxFailed, long inboxRecorded, long inboxSuppressed)
extends Record
implements Serializable
Durable queue metrics snapshot.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueueMetricsSnapshot(long enqueueCount, long leaseCount, long ackCount, long nackCount, long retryCount, long deadLetterCount, long duplicateCount, long outboxRecorded, long outboxPublished, long outboxFailed, long inboxRecorded, long inboxSuppressed) Creates metrics snapshot. -
Method Summary
Modifier and TypeMethodDescriptionlongackCount()Returns the value of theackCountrecord component.longReturns the value of thedeadLetterCountrecord component.longReturns the value of theduplicateCountrecord component.longReturns the value of theenqueueCountrecord 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 theinboxRecordedrecord component.longReturns the value of theinboxSuppressedrecord component.longReturns the value of theleaseCountrecord component.longReturns the value of thenackCountrecord component.longReturns the value of theoutboxFailedrecord component.longReturns the value of theoutboxPublishedrecord component.longReturns the value of theoutboxRecordedrecord component.longReturns the value of theretryCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueueMetricsSnapshot
public QueueMetricsSnapshot(long enqueueCount, long leaseCount, long ackCount, long nackCount, long retryCount, long deadLetterCount, long duplicateCount, long outboxRecorded, long outboxPublished, long outboxFailed, long inboxRecorded, long inboxSuppressed) Creates metrics snapshot.- Throws:
IllegalArgumentException- when any validated counter is negative
-
-
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. -
enqueueCount
public long enqueueCount()Returns the value of theenqueueCountrecord component.- Returns:
- the value of the
enqueueCountrecord component
-
leaseCount
public long leaseCount()Returns the value of theleaseCountrecord component.- Returns:
- the value of the
leaseCountrecord component
-
ackCount
-
nackCount
-
retryCount
public long retryCount()Returns the value of theretryCountrecord component.- Returns:
- the value of the
retryCountrecord component
-
deadLetterCount
public long deadLetterCount()Returns the value of thedeadLetterCountrecord component.- Returns:
- the value of the
deadLetterCountrecord component
-
duplicateCount
public long duplicateCount()Returns the value of theduplicateCountrecord component.- Returns:
- the value of the
duplicateCountrecord component
-
outboxRecorded
public long outboxRecorded()Returns the value of theoutboxRecordedrecord component.- Returns:
- the value of the
outboxRecordedrecord component
-
outboxPublished
public long outboxPublished()Returns the value of theoutboxPublishedrecord component.- Returns:
- the value of the
outboxPublishedrecord component
-
outboxFailed
public long outboxFailed()Returns the value of theoutboxFailedrecord component.- Returns:
- the value of the
outboxFailedrecord component
-
inboxRecorded
public long inboxRecorded()Returns the value of theinboxRecordedrecord component.- Returns:
- the value of the
inboxRecordedrecord component
-
inboxSuppressed
public long inboxSuppressed()Returns the value of theinboxSuppressedrecord component.- Returns:
- the value of the
inboxSuppressedrecord component
-