Record Class QueueStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.QueueStatus
- Record Components:
queue- queue namedepth- live message depthavailable- available message countleased- leased message countdelayed- delayed message countdeadLettered- dead-lettered message countpartitions- immutable partition statusesmetrics- queue metrics snapshotlastError- redacted last error code or message
- All Implemented Interfaces:
Serializable
public record QueueStatus(QueueName queue, long depth, long available, long leased, long delayed, long deadLettered, List<QueuePartitionStatus> partitions, QueueMetricsSnapshot metrics, String lastError)
extends Record
implements Serializable
Queue status and metrics.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueueStatus(QueueName queue, long depth, long available, long leased, long delayed, long deadLettered, List<QueuePartitionStatus> partitions, QueueMetricsSnapshot metrics, String lastError) Creates queue status. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theavailablerecord component.longReturns the value of thedeadLetteredrecord component.longdelayed()Returns the value of thedelayedrecord component.longdepth()Returns the value of thedepthrecord 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 thelastErrorrecord component.longleased()Returns the value of theleasedrecord component.metrics()Returns the value of themetricsrecord component.Returns the value of thepartitionsrecord component.queue()Returns the value of thequeuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueueStatus
public QueueStatus(QueueName queue, long depth, long available, long leased, long delayed, long deadLettered, List<QueuePartitionStatus> partitions, QueueMetricsSnapshot metrics, String lastError) Creates queue status.- Throws:
IllegalArgumentException- when queue is null
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
queue
-
depth
-
available
-
leased
-
delayed
-
deadLettered
public long deadLettered()Returns the value of thedeadLetteredrecord component.- Returns:
- the value of the
deadLetteredrecord component
-
partitions
Returns the value of thepartitionsrecord component.- Returns:
- the value of the
partitionsrecord component
-
metrics
-
lastError
-