Record Class EsbQueueInfo

java.lang.Object
java.lang.Record
com.kingsrook.qqq.esb.management.EsbQueueInfo

public record EsbQueueInfo(Long messageCount, Integer consumerCount, Boolean paused) extends Record
A broker queue's state, from the broker's management API, at the moment it was asked. - messageCount: messages on the queue, including any delivered to a consumer but not yet acknowledged. - consumerCount: consumers attached to the queue as reported by broker management, across all nodes. RabbitMQ JMS 3.9 polls synchronously with basicGet, so RabbitMQ reports zero here even while a QQQ trigger is polling and processing messages. Zero does not mean the trigger is inactive; use its runtime state and trigger metadata for the QQQ subscriber view. - paused: whether delivery to the queue's consumers is paused on the broker (always false on a broker that can't pause a queue, e.g., RabbitMQ).
  • Constructor Summary

    Constructors
    Constructor
    Description
    EsbQueueInfo(Long messageCount, Integer consumerCount, Boolean paused)
    Creates an instance of a EsbQueueInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the consumerCount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the messageCount record component.
    Returns the value of the paused record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EsbQueueInfo

      public EsbQueueInfo(Long messageCount, Integer consumerCount, Boolean paused)
      Creates an instance of a EsbQueueInfo record class.
      Parameters:
      messageCount - the value for the messageCount record component
      consumerCount - the value for the consumerCount record component
      paused - the value for the paused record component
  • 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 Objects::equals(Object,Object).
      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.
    • messageCount

      public Long messageCount()
      Returns the value of the messageCount record component.
      Returns:
      the value of the messageCount record component
    • consumerCount

      public Integer consumerCount()
      Returns the value of the consumerCount record component.
      Returns:
      the value of the consumerCount record component
    • paused

      public Boolean paused()
      Returns the value of the paused record component.
      Returns:
      the value of the paused record component