Record Class InboxStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.InboxStatus
- Record Components:
recorded- number of recorded inbound identitiessuppressed- number of suppressed duplicatesmetrics- queue-wide messaging metrics snapshotlastError- redacted last error code or message
- All Implemented Interfaces:
Serializable
public record InboxStatus(long recorded, long suppressed, QueueMetricsSnapshot metrics, String lastError)
extends Record
implements Serializable
Inbox duplicate suppression status.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInboxStatus(long recorded, long suppressed, QueueMetricsSnapshot metrics, String lastError) Creates inbox status. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.metrics()Returns the value of themetricsrecord component.longrecorded()Returns the value of therecordedrecord component.longReturns the value of thesuppressedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InboxStatus
Creates inbox status.- Throws:
IllegalArgumentException- when 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. -
recorded
-
suppressed
public long suppressed()Returns the value of thesuppressedrecord component.- Returns:
- the value of the
suppressedrecord component
-
metrics
-
lastError
-