Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.BrokerProducer
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerProducer
- Enclosing class:
- BrokerTypes
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerProducer(String tag, String name, String description, String topic, String brokerTag, int messageCount, int successCount, int failedCount, int pendingCount, Date lastActivity, BrokerTypes.ProducerConsumerHealthStatus status, Date createdAt) Creates an instance of aBrokerProducerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebrokerTagrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailedCountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastActivityrecord component.intReturns the value of themessageCountrecord component.name()Returns the value of thenamerecord component.intReturns the value of thependingCountrecord component.status()Returns the value of thestatusrecord component.intReturns the value of thesuccessCountrecord component.tag()Returns the value of thetagrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrokerProducer
public BrokerProducer(String tag, String name, String description, String topic, String brokerTag, int messageCount, int successCount, int failedCount, int pendingCount, Date lastActivity, BrokerTypes.ProducerConsumerHealthStatus status, Date createdAt) Creates an instance of aBrokerProducerrecord class.- Parameters:
tag- the value for thetagrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenttopic- the value for thetopicrecord componentbrokerTag- the value for thebrokerTagrecord componentmessageCount- the value for themessageCountrecord componentsuccessCount- the value for thesuccessCountrecord componentfailedCount- the value for thefailedCountrecord componentpendingCount- the value for thependingCountrecord componentlastActivity- the value for thelastActivityrecord componentstatus- the value for thestatusrecord componentcreatedAt- the value for thecreatedAtrecord 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 '=='. -
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
brokerTag
Returns the value of thebrokerTagrecord component.- Returns:
- the value of the
brokerTagrecord component
-
messageCount
public int messageCount()Returns the value of themessageCountrecord component.- Returns:
- the value of the
messageCountrecord 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
-
lastActivity
Returns the value of thelastActivityrecord component.- Returns:
- the value of the
lastActivityrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-