Record Class BrokerTypes.BrokerConsumer

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

public static record BrokerTypes.BrokerConsumer(String tag, String name, String description, String topic, String brokerTag, int messageCount, int successCount, int failedCount, int pendingCount, Double avgProcessingTime, Date lastActivity, BrokerTypes.ProducerConsumerHealthStatus status, Date createdAt) extends Record
  • Constructor Details

    • BrokerConsumer

      public BrokerConsumer(String tag, String name, String description, String topic, String brokerTag, int messageCount, int successCount, int failedCount, int pendingCount, Double avgProcessingTime, Date lastActivity, BrokerTypes.ProducerConsumerHealthStatus status, Date createdAt)
      Creates an instance of a BrokerConsumer record class.
      Parameters:
      tag - the value for the tag record component
      name - the value for the name record component
      description - the value for the description record component
      topic - the value for the topic record component
      brokerTag - the value for the brokerTag record component
      messageCount - the value for the messageCount record component
      successCount - the value for the successCount record component
      failedCount - the value for the failedCount record component
      pendingCount - the value for the pendingCount record component
      avgProcessingTime - the value for the avgProcessingTime record component
      lastActivity - the value for the lastActivity record component
      status - the value for the status record component
      createdAt - the value for the createdAt 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.
    • tag

      public String tag()
      Returns the value of the tag record component.
      Returns:
      the value of the tag record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • topic

      public String topic()
      Returns the value of the topic record component.
      Returns:
      the value of the topic record component
    • brokerTag

      public String brokerTag()
      Returns the value of the brokerTag record component.
      Returns:
      the value of the brokerTag record component
    • messageCount

      public int messageCount()
      Returns the value of the messageCount record component.
      Returns:
      the value of the messageCount record component
    • successCount

      public int successCount()
      Returns the value of the successCount record component.
      Returns:
      the value of the successCount record component
    • failedCount

      public int failedCount()
      Returns the value of the failedCount record component.
      Returns:
      the value of the failedCount record component
    • pendingCount

      public int pendingCount()
      Returns the value of the pendingCount record component.
      Returns:
      the value of the pendingCount record component
    • avgProcessingTime

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

      public Date lastActivity()
      Returns the value of the lastActivity record component.
      Returns:
      the value of the lastActivity record component
    • status

      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • createdAt

      public Date createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component