Record Class BrokerTypes.BrokerMessageStats

java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerMessageStats
Enclosing class:
BrokerTypes

public static record BrokerTypes.BrokerMessageStats(int total, int pending, int success, int failed, int partial, int producerCount, int consumerCount, int deadLetterCount, Map<String,Integer> messagesByTopic, Map<String,Integer> messagesByProducer, Double avgProcessingTime) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    BrokerMessageStats(int total, int pending, int success, int failed, int partial, int producerCount, int consumerCount, int deadLetterCount, Map<String,Integer> messagesByTopic, Map<String,Integer> messagesByProducer, Double avgProcessingTime)
    Creates an instance of a BrokerMessageStats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the avgProcessingTime record component.
    int
    Returns the value of the consumerCount record component.
    int
    Returns the value of the deadLetterCount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the failed record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the messagesByProducer record component.
    Returns the value of the messagesByTopic record component.
    int
    Returns the value of the partial record component.
    int
    Returns the value of the pending record component.
    int
    Returns the value of the producerCount record component.
    int
    Returns the value of the success record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the total record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BrokerMessageStats

      public BrokerMessageStats(int total, int pending, int success, int failed, int partial, int producerCount, int consumerCount, int deadLetterCount, Map<String,Integer> messagesByTopic, Map<String,Integer> messagesByProducer, Double avgProcessingTime)
      Creates an instance of a BrokerMessageStats record class.
      Parameters:
      total - the value for the total record component
      pending - the value for the pending record component
      success - the value for the success record component
      failed - the value for the failed record component
      partial - the value for the partial record component
      producerCount - the value for the producerCount record component
      consumerCount - the value for the consumerCount record component
      deadLetterCount - the value for the deadLetterCount record component
      messagesByTopic - the value for the messagesByTopic record component
      messagesByProducer - the value for the messagesByProducer record component
      avgProcessingTime - the value for the avgProcessingTime record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • total

      public int total()
      Returns the value of the total record component.
      Returns:
      the value of the total record component
    • pending

      public int pending()
      Returns the value of the pending record component.
      Returns:
      the value of the pending record component
    • success

      public int success()
      Returns the value of the success record component.
      Returns:
      the value of the success record component
    • failed

      public int failed()
      Returns the value of the failed record component.
      Returns:
      the value of the failed record component
    • partial

      public int partial()
      Returns the value of the partial record component.
      Returns:
      the value of the partial record component
    • producerCount

      public int producerCount()
      Returns the value of the producerCount record component.
      Returns:
      the value of the producerCount record component
    • consumerCount

      public int consumerCount()
      Returns the value of the consumerCount record component.
      Returns:
      the value of the consumerCount record component
    • deadLetterCount

      public int deadLetterCount()
      Returns the value of the deadLetterCount record component.
      Returns:
      the value of the deadLetterCount record component
    • messagesByTopic

      public Map<String,Integer> messagesByTopic()
      Returns the value of the messagesByTopic record component.
      Returns:
      the value of the messagesByTopic record component
    • messagesByProducer

      public Map<String,Integer> messagesByProducer()
      Returns the value of the messagesByProducer record component.
      Returns:
      the value of the messagesByProducer record component
    • avgProcessingTime

      public Double avgProcessingTime()
      Returns the value of the avgProcessingTime record component.
      Returns:
      the value of the avgProcessingTime record component