Record Class EsbQueueInfo
java.lang.Object
java.lang.Record
com.kingsrook.qqq.esb.management.EsbQueueInfo
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
ConstructorsConstructorDescriptionEsbQueueInfo(Long messageCount, Integer consumerCount, Boolean paused) Creates an instance of aEsbQueueInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsumerCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageCountrecord component.paused()Returns the value of thepausedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EsbQueueInfo
Creates an instance of aEsbQueueInforecord class.- Parameters:
messageCount- the value for themessageCountrecord componentconsumerCount- the value for theconsumerCountrecord componentpaused- the value for thepausedrecord 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 withObjects::equals(Object,Object). -
messageCount
Returns the value of themessageCountrecord component.- Returns:
- the value of the
messageCountrecord component
-
consumerCount
Returns the value of theconsumerCountrecord component.- Returns:
- the value of the
consumerCountrecord component
-
paused
Returns the value of thepausedrecord component.- Returns:
- the value of the
pausedrecord component
-