Record Class OutboxStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.OutboxStatus
- Record Components:
pending- pending outbox entriespublished- published outbox entriesfailed- failed outbox entriesmetrics- queue-wide messaging metrics snapshotlastError- redacted last error code or message
- All Implemented Interfaces:
Serializable
public record OutboxStatus(long pending, long published, long failed, QueueMetricsSnapshot metrics, String lastError)
extends Record
implements Serializable
Outbox status.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOutboxStatus(long pending, long published, long failed, QueueMetricsSnapshot metrics, String lastError) Creates status. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastErrorrecord component.metrics()Returns the value of themetricsrecord component.longpending()Returns the value of thependingrecord component.longReturns the value of thepublishedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OutboxStatus
public OutboxStatus(long pending, long published, long failed, QueueMetricsSnapshot metrics, String lastError) Creates 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. -
pending
-
published
-
failed
-
metrics
-
lastError
-