Class EsbStats
java.lang.Object
com.kingsrook.qqq.esb.stats.EsbStats
In-memory ESB counters for this node (spec section 7): nothing is stored, and
counts start over when the app restarts.
Destinations are counted by their QQQ destination name, and triggers by their
trigger name (processName.destinationName), in separate maps. Counting never
throws: a null name is ignored, so observability can't break a publish or a
run. Safe to call from any thread.
-
Method Summary
Modifier and TypeMethodDescriptionvoidThe trigger received a message.voiddeadLettered(String triggerName) The trigger's message used its last attempt, and was dead-lettered (or discarded).destination(String destinationName) A snapshot of the destination's counters (all zero if it has none).voidThe trigger's run failed.static EsbStatsThe singleton.voidChange the number of messages the trigger is processing right now (+1 when a run starts, -1 when it ends).voidA message was sent to the destination.voidpublishFailed(String destinationName, Exception exception) A message could not be sent to the destination.voidreset()Clear all counters (used by tests).voidThe trigger's failed message will be redelivered for another attempt.voidThe trigger's run succeeded, taking ms milliseconds.A snapshot of the trigger's counters (all zero if it has none).
-
Method Details
-
getInstance
The singleton. -
published
A message was sent to the destination. -
publishFailed
-
consumed
The trigger received a message. -
succeeded
The trigger's run succeeded, taking ms milliseconds. -
failed
-
retried
The trigger's failed message will be redelivered for another attempt. -
deadLettered
The trigger's message used its last attempt, and was dead-lettered (or discarded). -
inFlight
Change the number of messages the trigger is processing right now (+1 when a run starts, -1 when it ends). -
destination
A snapshot of the destination's counters (all zero if it has none). -
trigger
A snapshot of the trigger's counters (all zero if it has none). -
reset
public void reset()Clear all counters (used by tests).
-