Package org.acemq.workloads.scenario
Record Class ScenarioSample.ProducerSample
java.lang.Object
java.lang.Record
org.acemq.workloads.scenario.ScenarioSample.ProducerSample
- Record Components:
name- the producerpublished- messages published in this phaseconfirmed- messages the broker has confirmedfailed- publishes refused or erroredpublishRate- publishes a second since the previous readingsendLag- 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 Summary
ConstructorsConstructorDescriptionProducerSample(String name, long published, long confirmed, long failed, long refused, double publishRate, LatencySummary sendLag) Creates an instance of aProducerSamplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theconfirmedrecord component.final booleanIndicates whether some other object is "equal to" this one.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 thepublishedrecord component.doubleReturns the value of thepublishRaterecord component.longrefused()Returns the value of therefusedrecord component.sendLag()Returns the value of thesendLagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProducerSample
public ProducerSample(String name, long published, long confirmed, long failed, long refused, double publishRate, LatencySummary sendLag) Creates an instance of aProducerSamplerecord class.- Parameters:
name- the value for thenamerecord componentpublished- the value for thepublishedrecord componentconfirmed- the value for theconfirmedrecord componentfailed- the value for thefailedrecord componentrefused- the value for therefusedrecord componentpublishRate- the value for thepublishRaterecord componentsendLag- the value for thesendLagrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord 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
-
refused
public long refused()Returns the value of therefusedrecord component.- Returns:
- the value of the
refusedrecord component
-
publishRate
public double publishRate()Returns the value of thepublishRaterecord component.- Returns:
- the value of the
publishRaterecord component
-
sendLag
Returns the value of thesendLagrecord component.- Returns:
- the value of the
sendLagrecord component
-