Record Class QueueMetricsSnapshot

java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.QueueMetricsSnapshot
Record Components:
enqueueCount - enqueue operations
leaseCount - lease operations
ackCount - acknowledge operations
nackCount - negative acknowledge operations
retryCount - retry transitions
deadLetterCount - dead-letter transitions
duplicateCount - duplicate enqueue decisions
outboxRecorded - recorded outbox entries
outboxPublished - published outbox entries
outboxFailed - failed outbox entries
inboxRecorded - recorded inbox identities
inboxSuppressed - 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 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • enqueueCount

      public long enqueueCount()
      Returns the value of the enqueueCount record component.
      Returns:
      the value of the enqueueCount record component
    • leaseCount

      public long leaseCount()
      Returns the value of the leaseCount record component.
      Returns:
      the value of the leaseCount record component
    • ackCount

      public long ackCount()
      Returns the value of the ackCount record component.
      Returns:
      the value of the ackCount record component
    • nackCount

      public long nackCount()
      Returns the value of the nackCount record component.
      Returns:
      the value of the nackCount record component
    • retryCount

      public long retryCount()
      Returns the value of the retryCount record component.
      Returns:
      the value of the retryCount record component
    • deadLetterCount

      public long deadLetterCount()
      Returns the value of the deadLetterCount record component.
      Returns:
      the value of the deadLetterCount record component
    • duplicateCount

      public long duplicateCount()
      Returns the value of the duplicateCount record component.
      Returns:
      the value of the duplicateCount record component
    • outboxRecorded

      public long outboxRecorded()
      Returns the value of the outboxRecorded record component.
      Returns:
      the value of the outboxRecorded record component
    • outboxPublished

      public long outboxPublished()
      Returns the value of the outboxPublished record component.
      Returns:
      the value of the outboxPublished record component
    • outboxFailed

      public long outboxFailed()
      Returns the value of the outboxFailed record component.
      Returns:
      the value of the outboxFailed record component
    • inboxRecorded

      public long inboxRecorded()
      Returns the value of the inboxRecorded record component.
      Returns:
      the value of the inboxRecorded record component
    • inboxSuppressed

      public long inboxSuppressed()
      Returns the value of the inboxSuppressed record component.
      Returns:
      the value of the inboxSuppressed record component