Class MessageBusStatistics
- java.lang.Object
-
- de.quantummaid.eventmaid.messagebus.statistics.MessageBusStatistics
-
public final class MessageBusStatistics extends Object
A collection of statistics about the messages, that have been processed up to the point the statistics were requested.The timestamp defines the approximate time, when the statistics were queried. But no locking during the request is performed. So the values should be seen as approximations.
The value of
getAcceptedMessages()defines the number of messages theMessageBushas been accepted without an exception.getQueuedMessages()returns, how many messages have been accepted, but due to not enough resources have been queued. The processing of queued messages will automatically be continued, when resources become available and theMessageBusis not closed before.getBlockedMessages()andgetForgottenMessages()relate to the results ofFiltersbeing applied. Messages, that have been blocked by aFilterstop their propagation through theMessageBus. Forgotten messages are those messages, that have not explicitly marked as passed or blocked by aFilter. Usually they are the result of a bug inside on of theFilters. Once a message passed allFiltersthe finalActionis executed. ThegetSuccessfulMessages()returns the number of messages, that have been delivered without exceptions. In case of an exception during the delivery, the message is marked as failed.getFailedMessages()returns the amount of those messages.- See Also:
- EventMaid Documentation
-
-
Constructor Summary
Constructors Constructor Description MessageBusStatistics()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegergetAcceptedMessages()BigIntegergetBlockedMessages()BigIntegergetFailedMessages()BigIntegergetForgottenMessages()BigIntegergetQueuedMessages()BigIntegergetSuccessfulMessages()DategetTimestamp()static MessageBusStatisticsmessageBusStatistics(Date timestamp, BigInteger acceptedMessages, BigInteger successfulMessages, BigInteger failedMessages, BigInteger blockedMessages, BigInteger forgottenMessages, BigInteger queuedMessages)
-
-
-
Method Detail
-
messageBusStatistics
public static MessageBusStatistics messageBusStatistics(Date timestamp, BigInteger acceptedMessages, BigInteger successfulMessages, BigInteger failedMessages, BigInteger blockedMessages, BigInteger forgottenMessages, BigInteger queuedMessages)
-
getTimestamp
public Date getTimestamp()
-
getAcceptedMessages
public BigInteger getAcceptedMessages()
-
getSuccessfulMessages
public BigInteger getSuccessfulMessages()
-
getFailedMessages
public BigInteger getFailedMessages()
-
getBlockedMessages
public BigInteger getBlockedMessages()
-
getForgottenMessages
public BigInteger getForgottenMessages()
-
getQueuedMessages
public BigInteger getQueuedMessages()
-
-