Record Class EsbCounterSnapshot
java.lang.Object
java.lang.Record
com.kingsrook.qqq.esb.stats.EsbCounterSnapshot
public record EsbCounterSnapshot(Long published, Long publishFailures, Long consumed, Long succeeded, Long failed, Long retried, Long deadLettered, Integer inFlight, Instant lastActivity, Long avgMs, Long maxMs, String lastError)
extends Record
A point-in-time copy of one destination's or trigger's counters on this node
(spec section 7). Component names match the endpoint contract's Counter.
Destinations count published and publishFailures; triggers count the rest.
avgMs (rounded) and maxMs are over succeeded runs. lastActivity is the time
of the latest count of any kind, and lastError the message of the latest
failure; both are null until there is one.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EsbCounterSnapshotThe snapshot for a destination or trigger that hasn't counted anything. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavgMs()Returns the value of theavgMsrecord component.consumed()Returns the value of theconsumedrecord component.Returns the value of thedeadLetteredrecord component.final booleanIndicates whether some other object is "equal to" this one.failed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.inFlight()Returns the value of theinFlightrecord component.Returns the value of thelastActivityrecord component.Returns the value of thelastErrorrecord component.maxMs()Returns the value of themaxMsrecord component.Returns the value of thepublishedrecord component.Returns the value of thepublishFailuresrecord component.retried()Returns the value of theretriedrecord component.Returns the value of thesucceededrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
The snapshot for a destination or trigger that hasn't counted anything.
-
-
Constructor Details
-
EsbCounterSnapshot
public EsbCounterSnapshot(Long published, Long publishFailures, Long consumed, Long succeeded, Long failed, Long retried, Long deadLettered, Integer inFlight, Instant lastActivity, Long avgMs, Long maxMs, String lastError) Creates an instance of aEsbCounterSnapshotrecord class.- Parameters:
published- the value for thepublishedrecord componentpublishFailures- the value for thepublishFailuresrecord componentconsumed- the value for theconsumedrecord componentsucceeded- the value for thesucceededrecord componentfailed- the value for thefailedrecord componentretried- the value for theretriedrecord componentdeadLettered- the value for thedeadLetteredrecord componentinFlight- the value for theinFlightrecord componentlastActivity- the value for thelastActivityrecord componentavgMs- the value for theavgMsrecord componentmaxMs- the value for themaxMsrecord componentlastError- the value for thelastErrorrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
published
Returns the value of thepublishedrecord component.- Returns:
- the value of the
publishedrecord component
-
publishFailures
Returns the value of thepublishFailuresrecord component.- Returns:
- the value of the
publishFailuresrecord component
-
consumed
Returns the value of theconsumedrecord component.- Returns:
- the value of the
consumedrecord component
-
succeeded
Returns the value of thesucceededrecord component.- Returns:
- the value of the
succeededrecord component
-
failed
Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
retried
Returns the value of theretriedrecord component.- Returns:
- the value of the
retriedrecord component
-
deadLettered
Returns the value of thedeadLetteredrecord component.- Returns:
- the value of the
deadLetteredrecord component
-
inFlight
Returns the value of theinFlightrecord component.- Returns:
- the value of the
inFlightrecord component
-
lastActivity
Returns the value of thelastActivityrecord component.- Returns:
- the value of the
lastActivityrecord component
-
avgMs
Returns the value of theavgMsrecord component.- Returns:
- the value of the
avgMsrecord component
-
maxMs
Returns the value of themaxMsrecord component.- Returns:
- the value of the
maxMsrecord component
-
lastError
Returns the value of thelastErrorrecord component.- Returns:
- the value of the
lastErrorrecord component
-