Record Class ScenarioSample.ProducerSample

java.lang.Object
java.lang.Record
org.acemq.workloads.scenario.ScenarioSample.ProducerSample
Record Components:
name - the producer
published - messages published in this phase
confirmed - messages the broker has confirmed
failed - publishes refused or errored
publishRate - publishes a second since the previous reading
sendLag - how far behind its own schedule it is going out, cumulative
Enclosing class:
ScenarioSample

public static record ScenarioSample.ProducerSample(String name, long published, long confirmed, long failed, long refused, double publishRate, LatencySummary sendLag) extends Record
What one producer is doing.
  • Constructor Details

    • ProducerSample

      public ProducerSample(String name, long published, long confirmed, long failed, long refused, double publishRate, LatencySummary sendLag)
      Creates an instance of a ProducerSample record class.
      Parameters:
      name - the value for the name record component
      published - the value for the published record component
      confirmed - the value for the confirmed record component
      failed - the value for the failed record component
      refused - the value for the refused record component
      publishRate - the value for the publishRate record component
      sendLag - the value for the sendLag 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.
    • name

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

      public long published()
      Returns the value of the published record component.
      Returns:
      the value of the published record component
    • confirmed

      public long confirmed()
      Returns the value of the confirmed record component.
      Returns:
      the value of the confirmed record component
    • failed

      public long failed()
      Returns the value of the failed record component.
      Returns:
      the value of the failed record component
    • refused

      public long refused()
      Returns the value of the refused record component.
      Returns:
      the value of the refused record component
    • publishRate

      public double publishRate()
      Returns the value of the publishRate record component.
      Returns:
      the value of the publishRate record component
    • sendLag

      public LatencySummary sendLag()
      Returns the value of the sendLag record component.
      Returns:
      the value of the sendLag record component