Package org.acemq.workloads.scenario
Record Class ScenarioFile.ConsumersJson
java.lang.Object
java.lang.Record
org.acemq.workloads.scenario.ScenarioFile.ConsumersJson
- Record Components:
concurrency- how many consumersprefetch- how many unacknowledged messages each may holdhandlerTime- how long the handler pretends to workfailureRate- how often it throws, 0 to 1enabled- whether they run at all
- Enclosing class:
ScenarioFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconcurrencyrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureRaterecord component.Returns the value of thehandlerTimerecord component.final inthashCode()Returns a hash code value for this object.prefetch()Returns the value of theprefetchrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsumersJson
public ConsumersJson(Integer concurrency, Integer prefetch, String handlerTime, Double failureRate, Boolean enabled) Creates an instance of aConsumersJsonrecord class.- Parameters:
concurrency- the value for theconcurrencyrecord componentprefetch- the value for theprefetchrecord componenthandlerTime- the value for thehandlerTimerecord componentfailureRate- the value for thefailureRaterecord componentenabled- the value for theenabledrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
concurrency
Returns the value of theconcurrencyrecord component.- Returns:
- the value of the
concurrencyrecord component
-
prefetch
Returns the value of theprefetchrecord component.- Returns:
- the value of the
prefetchrecord component
-
handlerTime
Returns the value of thehandlerTimerecord component.- Returns:
- the value of the
handlerTimerecord component
-
failureRate
Returns the value of thefailureRaterecord component.- Returns:
- the value of the
failureRaterecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-