Record Class QueuePartitionStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.QueuePartitionStatus
- Record Components:
partitionId- partition identifieravailable- available message countleased- leased message countdelayed- delayed message countdeadLettered- dead-lettered message count
- All Implemented Interfaces:
Serializable
public record QueuePartitionStatus(QueuePartitionId partitionId, long available, long leased, long delayed, long deadLettered)
extends Record
implements Serializable
Partition-level queue status.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueuePartitionStatus(QueuePartitionId partitionId, long available, long leased, long delayed, long deadLettered) Creates partition status. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theavailablerecord component.longReturns the value of thedeadLetteredrecord component.longdelayed()Returns the value of thedelayedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longleased()Returns the value of theleasedrecord component.Returns the value of thepartitionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueuePartitionStatus
public QueuePartitionStatus(QueuePartitionId partitionId, long available, long leased, long delayed, long deadLettered) Creates partition status.- Throws:
IllegalArgumentException- when partition id is null or counters are 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
partitionId
Returns the value of thepartitionIdrecord component.- Returns:
- the value of the
partitionIdrecord component
-
available
-
leased
-
delayed
-
deadLettered
public long deadLettered()Returns the value of thedeadLetteredrecord component.- Returns:
- the value of the
deadLetteredrecord component
-