Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.BrokerMessageStats
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerMessageStats
- Enclosing class:
- BrokerTypes
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerMessageStats(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 aBrokerMessageStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavgProcessingTimerecord component.intReturns the value of theconsumerCountrecord component.intReturns the value of thedeadLetterCountrecord component.final booleanIndicates whether some other object is "equal to" this one.intfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themessagesByProducerrecord component.Returns the value of themessagesByTopicrecord component.intpartial()Returns the value of thepartialrecord component.intpending()Returns the value of thependingrecord component.intReturns the value of theproducerCountrecord component.intsuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
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 aBrokerMessageStatsrecord class.- Parameters:
total- the value for thetotalrecord componentpending- the value for thependingrecord componentsuccess- the value for thesuccessrecord componentfailed- the value for thefailedrecord componentpartial- the value for thepartialrecord componentproducerCount- the value for theproducerCountrecord componentconsumerCount- the value for theconsumerCountrecord componentdeadLetterCount- the value for thedeadLetterCountrecord componentmessagesByTopic- the value for themessagesByTopicrecord componentmessagesByProducer- the value for themessagesByProducerrecord componentavgProcessingTime- the value for theavgProcessingTimerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
total
public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
pending
public int pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
success
public int success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
failed
public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
partial
public int partial()Returns the value of thepartialrecord component.- Returns:
- the value of the
partialrecord component
-
producerCount
public int producerCount()Returns the value of theproducerCountrecord component.- Returns:
- the value of the
producerCountrecord component
-
consumerCount
public int consumerCount()Returns the value of theconsumerCountrecord component.- Returns:
- the value of the
consumerCountrecord component
-
deadLetterCount
public int deadLetterCount()Returns the value of thedeadLetterCountrecord component.- Returns:
- the value of the
deadLetterCountrecord component
-
messagesByTopic
Returns the value of themessagesByTopicrecord component.- Returns:
- the value of the
messagesByTopicrecord component
-
messagesByProducer
Returns the value of themessagesByProducerrecord component.- Returns:
- the value of the
messagesByProducerrecord component
-
avgProcessingTime
Returns the value of theavgProcessingTimerecord component.- Returns:
- the value of the
avgProcessingTimerecord component
-