Package org.acemq.workloads.scenario
Record Class ScenarioSample.QueueSample
java.lang.Object
java.lang.Record
org.acemq.workloads.scenario.ScenarioSample.QueueSample
- Record Components:
name- the queueconsumed- messages its consumers have handled in this phaseconsumeRate- consumes a second since the previous readingdepth- messages waiting, when the broker will sayendToEnd- latency from due to handled, cumulativeconsuming- whether anything is reading it at all
- Enclosing class:
ScenarioSample
public static record ScenarioSample.QueueSample(String name, long consumed, double consumeRate, Long depth, LatencySummary endToEnd, boolean consuming)
extends Record
What one queue is doing.
-
Constructor Summary
ConstructorsConstructorDescriptionQueueSample(String name, long consumed, double consumeRate, Long depth, LatencySummary endToEnd, boolean consuming) Creates an instance of aQueueSamplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongconsumed()Returns the value of theconsumedrecord component.doubleReturns the value of theconsumeRaterecord component.booleanReturns the value of theconsumingrecord component.depth()Returns the value of thedepthrecord component.endToEnd()Returns the value of theendToEndrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueueSample
public QueueSample(String name, long consumed, double consumeRate, Long depth, LatencySummary endToEnd, boolean consuming) Creates an instance of aQueueSamplerecord class.- Parameters:
name- the value for thenamerecord componentconsumed- the value for theconsumedrecord componentconsumeRate- the value for theconsumeRaterecord componentdepth- the value for thedepthrecord componentendToEnd- the value for theendToEndrecord componentconsuming- the value for theconsumingrecord 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
-
consumed
public long consumed()Returns the value of theconsumedrecord component.- Returns:
- the value of the
consumedrecord component
-
consumeRate
public double consumeRate()Returns the value of theconsumeRaterecord component.- Returns:
- the value of the
consumeRaterecord component
-
depth
Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
endToEnd
Returns the value of theendToEndrecord component.- Returns:
- the value of the
endToEndrecord component
-
consuming
public boolean consuming()Returns the value of theconsumingrecord component.- Returns:
- the value of the
consumingrecord component
-