Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.BrokerEventStats
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerEventStats
- Enclosing class:
- BrokerTypes
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerEventStats(int totalEvents, int successCount, int failedCount, int pendingCount, int duplicateCount, int deadLetterCount, int idempotentCount, Map<String, Integer> eventsByTopic, Map<BrokerTypes.BrokerEventCategory, Integer> eventsByCategory) Creates an instance of aBrokerEventStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedeadLetterCountrecord component.intReturns the value of theduplicateCountrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventsByCategoryrecord component.Returns the value of theeventsByTopicrecord component.intReturns the value of thefailedCountrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theidempotentCountrecord component.intReturns the value of thependingCountrecord component.intReturns the value of thesuccessCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalEventsrecord component.
-
Constructor Details
-
BrokerEventStats
public BrokerEventStats(int totalEvents, int successCount, int failedCount, int pendingCount, int duplicateCount, int deadLetterCount, int idempotentCount, Map<String, Integer> eventsByTopic, Map<BrokerTypes.BrokerEventCategory, Integer> eventsByCategory) Creates an instance of aBrokerEventStatsrecord class.- Parameters:
totalEvents- the value for thetotalEventsrecord componentsuccessCount- the value for thesuccessCountrecord componentfailedCount- the value for thefailedCountrecord componentpendingCount- the value for thependingCountrecord componentduplicateCount- the value for theduplicateCountrecord componentdeadLetterCount- the value for thedeadLetterCountrecord componentidempotentCount- the value for theidempotentCountrecord componenteventsByTopic- the value for theeventsByTopicrecord componenteventsByCategory- the value for theeventsByCategoryrecord 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 '=='. -
totalEvents
public int totalEvents()Returns the value of thetotalEventsrecord component.- Returns:
- the value of the
totalEventsrecord component
-
successCount
public int successCount()Returns the value of thesuccessCountrecord component.- Returns:
- the value of the
successCountrecord component
-
failedCount
public int failedCount()Returns the value of thefailedCountrecord component.- Returns:
- the value of the
failedCountrecord component
-
pendingCount
public int pendingCount()Returns the value of thependingCountrecord component.- Returns:
- the value of the
pendingCountrecord component
-
duplicateCount
public int duplicateCount()Returns the value of theduplicateCountrecord component.- Returns:
- the value of the
duplicateCountrecord component
-
deadLetterCount
public int deadLetterCount()Returns the value of thedeadLetterCountrecord component.- Returns:
- the value of the
deadLetterCountrecord component
-
idempotentCount
public int idempotentCount()Returns the value of theidempotentCountrecord component.- Returns:
- the value of the
idempotentCountrecord component
-
eventsByTopic
Returns the value of theeventsByTopicrecord component.- Returns:
- the value of the
eventsByTopicrecord component
-
eventsByCategory
Returns the value of theeventsByCategoryrecord component.- Returns:
- the value of the
eventsByCategoryrecord component
-