Record Class ScenarioReport.ProducerResult

java.lang.Object
java.lang.Record
org.acemq.workloads.scenario.ScenarioReport.ProducerResult
Record Components:
name - the producer
offeredRate - the rate it was asked for, 0 when unthrottled
published - how many it published
confirmed - how many the broker confirmed
failed - how many were refused or errored
publishLatency - time from send to confirm
sendLag - how far behind its own schedule it went out
Enclosing class:
ScenarioReport

public static record ScenarioReport.ProducerResult(String name, long offeredRate, long published, long confirmed, long failed, LatencySummary publishLatency, LatencySummary sendLag, Expect expectations) extends Record
What one producer managed.
  • Constructor Details

    • ProducerResult

      public ProducerResult(String name, long offeredRate, long published, long confirmed, long failed, LatencySummary publishLatency, LatencySummary sendLag, Expect expectations)
      Creates an instance of a ProducerResult record class.
      Parameters:
      name - the value for the name record component
      offeredRate - the value for the offeredRate 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
      publishLatency - the value for the publishLatency record component
      sendLag - the value for the sendLag record component
      expectations - the value for the expectations record component
  • Method Details

    • achievedRate

      public double achievedRate(Duration duration)
      Parameters:
      duration - how long the measured window was
      Returns:
      messages a second actually offered
    • 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
    • offeredRate

      public long offeredRate()
      Returns the value of the offeredRate record component.
      Returns:
      the value of the offeredRate 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
    • publishLatency

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

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

      public Expect expectations()
      Returns the value of the expectations record component.
      Returns:
      the value of the expectations record component