Package org.acemq.workloads.scenario
Record Class ScenarioReport.ProducerResult
java.lang.Object
java.lang.Record
org.acemq.workloads.scenario.ScenarioReport.ProducerResult
- Record Components:
name- the producerofferedRate- the rate it was asked for, 0 when unthrottledpublished- how many it publishedconfirmed- how many the broker confirmedfailed- how many were refused or erroredpublishLatency- time from send to confirmsendLag- 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 Summary
ConstructorsConstructorDescriptionProducerResult(String name, long offeredRate, long published, long confirmed, long failed, LatencySummary publishLatency, LatencySummary sendLag, Expect expectations) Creates an instance of aProducerResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleachievedRate(Duration duration) longReturns the value of theconfirmedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectationsrecord component.longfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.longReturns the value of theofferedRaterecord component.longReturns the value of thepublishedrecord component.Returns the value of thepublishLatencyrecord component.sendLag()Returns the value of thesendLagrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aProducerResultrecord class.- Parameters:
name- the value for thenamerecord componentofferedRate- the value for theofferedRaterecord componentpublished- the value for thepublishedrecord componentconfirmed- the value for theconfirmedrecord componentfailed- the value for thefailedrecord componentpublishLatency- the value for thepublishLatencyrecord componentsendLag- the value for thesendLagrecord componentexpectations- the value for theexpectationsrecord component
-
-
Method Details
-
achievedRate
- Parameters:
duration- how long the measured window was- Returns:
- messages a second actually offered
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
offeredRate
public long offeredRate()Returns the value of theofferedRaterecord component.- Returns:
- the value of the
offeredRaterecord component
-
published
public long published()Returns the value of thepublishedrecord component.- Returns:
- the value of the
publishedrecord component
-
confirmed
public long confirmed()Returns the value of theconfirmedrecord component.- Returns:
- the value of the
confirmedrecord component
-
failed
public long failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
publishLatency
Returns the value of thepublishLatencyrecord component.- Returns:
- the value of the
publishLatencyrecord component
-
sendLag
Returns the value of thesendLagrecord component.- Returns:
- the value of the
sendLagrecord component
-
expectations
Returns the value of theexpectationsrecord component.- Returns:
- the value of the
expectationsrecord component
-