Record Class MessagingHealth
java.lang.Object
java.lang.Record
org.j7m.middleware.messaging.MessagingHealth
- Record Components:
open- whether the service is openqueues- number of known queuesdeadLettered- number of dead-lettered messageslastError- redacted last error code or message
-
Constructor Summary
ConstructorsConstructorDescriptionMessagingHealth(boolean open, long queues, long deadLettered, String lastError) Creates health summary. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedeadLetteredrecord 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.booleanopen()Returns the value of theopenrecord component.longqueues()Returns the value of thequeuesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessagingHealth
Creates health summary.
-
-
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. -
open
-
queues
-
deadLettered
public long deadLettered()Returns the value of thedeadLetteredrecord component.- Returns:
- the value of the
deadLetteredrecord component
-
lastError
-