Class ChannelStatistics


  • public final class ChannelStatistics
    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 the Channel has 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 the Channel is not closed before. getBlockedMessages() and getForgottenMessages() relate to the results of Filters being applied. Messages, that have been blocked by a Filter stop their propagation through the Channel. Forgotten messages are those messages, that have not explicitly marked as passed or blocked by a Filter. Usually they are the result of a bug inside on of the Filters. Once a message passed all Filter the final Action is executed. The getSuccessfulMessages() 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