Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.BrokerOverviewDashboard
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerOverviewDashboard
- Enclosing class:
- BrokerTypes
public static record BrokerTypes.BrokerOverviewDashboard(BrokerTypes.BrokerMessageStats stats, List<BrokerTypes.BrokerMessage> recentMessages, List<BrokerTypes.BrokerProducer> topProducers, List<BrokerTypes.BrokerConsumer> topConsumers, List<BrokerTypes.BrokerDailyActivity> dailyActivity, List<BrokerTypes.BrokerHourlyDistribution> hourlyDistribution)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerOverviewDashboard(BrokerTypes.BrokerMessageStats stats, List<BrokerTypes.BrokerMessage> recentMessages, List<BrokerTypes.BrokerProducer> topProducers, List<BrokerTypes.BrokerConsumer> topConsumers, List<BrokerTypes.BrokerDailyActivity> dailyActivity, List<BrokerTypes.BrokerHourlyDistribution> hourlyDistribution) Creates an instance of aBrokerOverviewDashboardrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedailyActivityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehourlyDistributionrecord component.Returns the value of therecentMessagesrecord component.stats()Returns the value of thestatsrecord component.Returns the value of thetopConsumersrecord component.Returns the value of thetopProducersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrokerOverviewDashboard
public BrokerOverviewDashboard(BrokerTypes.BrokerMessageStats stats, List<BrokerTypes.BrokerMessage> recentMessages, List<BrokerTypes.BrokerProducer> topProducers, List<BrokerTypes.BrokerConsumer> topConsumers, List<BrokerTypes.BrokerDailyActivity> dailyActivity, List<BrokerTypes.BrokerHourlyDistribution> hourlyDistribution) Creates an instance of aBrokerOverviewDashboardrecord class.- Parameters:
stats- the value for thestatsrecord componentrecentMessages- the value for therecentMessagesrecord componenttopProducers- the value for thetopProducersrecord componenttopConsumers- the value for thetopConsumersrecord componentdailyActivity- the value for thedailyActivityrecord componenthourlyDistribution- the value for thehourlyDistributionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
stats
Returns the value of thestatsrecord component.- Returns:
- the value of the
statsrecord component
-
recentMessages
Returns the value of therecentMessagesrecord component.- Returns:
- the value of the
recentMessagesrecord component
-
topProducers
Returns the value of thetopProducersrecord component.- Returns:
- the value of the
topProducersrecord component
-
topConsumers
Returns the value of thetopConsumersrecord component.- Returns:
- the value of the
topConsumersrecord component
-
dailyActivity
Returns the value of thedailyActivityrecord component.- Returns:
- the value of the
dailyActivityrecord component
-
hourlyDistribution
Returns the value of thehourlyDistributionrecord component.- Returns:
- the value of the
hourlyDistributionrecord component
-