Interface OutboxMetrics
- All Known Implementing Classes:
MicrometerOutboxMetrics
public interface OutboxMetrics
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionvoidcountMessagingSend(String bootstrapServers, String topic, String messageType, String messageTypeVersion) Count the actual sending of messages on the messaging system.voidcountTransactionalSend(boolean sendImmediately) Count a send operation on the transactional outbox and tag it with dimensions 'delivery_type' and 'tx_status'.voidUpdate the gauges that reflect outbox metrics derived from persistent storage e.g. the current message relay lag or the current number of failed messages.
-
Field Details
-
MESSAGES_READY_TO_BE_SENT_COUNTER
- See Also:
-
MESSAGES_FAILED_COUNTER
- See Also:
-
MESSAGES_POST_COUNTER
- See Also:
-
MESSAGES_TRANSMIT_TIMER
- See Also:
-
MESSAGE_DELIVERY_TYPE_TAG
- See Also:
-
MESSAGE_DELIVERY_TYPE_IMMEDIATE
- See Also:
-
MESSAGE_DELIVERY_TYPE_SCHEDULED
- See Also:
-
MESSAGE_TX_STATUS_TAG
- See Also:
-
MESSAGE_TX_STATUS_COMMITTED
- See Also:
-
MESSAGE_TX_STATUS_ROLLED_BACK
- See Also:
-
MESSAGE_TX_STATUS_UNKNOWN
- See Also:
-
MESSAGE_RESEND_STATUS_TAG
- See Also:
-
MESSAGE_RESEND_STATUS_RESEND_ENABLED
- See Also:
-
MESSAGE_RESEND_STATUS_RESEND_DISABLED
- See Also:
-
MESSAGES_READY_TO_BE_SENT_TIMER
- See Also:
-
-
Method Details
-
countTransactionalSend
void countTransactionalSend(boolean sendImmediately) Count a send operation on the transactional outbox and tag it with dimensions 'delivery_type' and 'tx_status'.- Parameters:
sendImmediately-trueif the send operation requested sending immediately after the transaction commit,falseotherwise.
-
updateGauges
void updateGauges()Update the gauges that reflect outbox metrics derived from persistent storage e.g. the current message relay lag or the current number of failed messages. -
countMessagingSend
void countMessagingSend(String bootstrapServers, String topic, String messageType, String messageTypeVersion) Count the actual sending of messages on the messaging system.- Parameters:
bootstrapServers- cluster bootstrap server addresstopic- the topic where the message will be sentmessageType- the type of the messagemessageTypeVersion- the version of the type of the message
-