Package org.acemq.workloads.scenario
Record Class ScenarioFile.ProducerJson
java.lang.Object
java.lang.Record
org.acemq.workloads.scenario.ScenarioFile.ProducerJson
- Record Components:
name- what to call this source of loadexchange- where it publishesroutingKeys- the keys it publishes under, in turnrate- messages a second, 0 for as fast as it canthreads- how many threads, or null to work it out from the ratemessageSize- bytes per messageconfirms- whether it waits for the brokermaxInFlight- how many publishes may be outstandingmaxMessages- stop after this manyenabled- whether it publishes
- Enclosing class:
ScenarioFile
-
Constructor Summary
ConstructorsConstructorDescriptionProducerJson(String name, String exchange, List<String> routingKeys, Long rate, Integer threads, Integer messageSize, Boolean confirms, Integer maxInFlight, Long maxMessages, Boolean enabled) A producer that is asked to prove nothing in particular.ProducerJson(String name, String exchange, List<String> routingKeys, Long rate, Integer threads, Integer messageSize, Boolean confirms, Integer maxInFlight, Long maxMessages, Boolean enabled, ScenarioFile.ExpectJson expect) Creates an instance of aProducerJsonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfirms()Returns the value of theconfirmsrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.exchange()Returns the value of theexchangerecord component.expect()Returns the value of theexpectrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themaxInFlightrecord component.Returns the value of themaxMessagesrecord component.Returns the value of themessageSizerecord component.name()Returns the value of thenamerecord component.rate()Returns the value of theraterecord component.Returns the value of theroutingKeysrecord component.threads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProducerJson
public ProducerJson(String name, String exchange, List<String> routingKeys, Long rate, Integer threads, Integer messageSize, Boolean confirms, Integer maxInFlight, Long maxMessages, Boolean enabled) A producer that is asked to prove nothing in particular. -
ProducerJson
public ProducerJson(String name, String exchange, List<String> routingKeys, Long rate, Integer threads, Integer messageSize, Boolean confirms, Integer maxInFlight, Long maxMessages, Boolean enabled, ScenarioFile.ExpectJson expect) Creates an instance of aProducerJsonrecord class.- Parameters:
name- the value for thenamerecord componentexchange- the value for theexchangerecord componentroutingKeys- the value for theroutingKeysrecord componentrate- the value for theraterecord componentthreads- the value for thethreadsrecord componentmessageSize- the value for themessageSizerecord componentconfirms- the value for theconfirmsrecord componentmaxInFlight- the value for themaxInFlightrecord componentmaxMessages- the value for themaxMessagesrecord componentenabled- the value for theenabledrecord componentexpect- the value for theexpectrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
exchange
Returns the value of theexchangerecord component.- Returns:
- the value of the
exchangerecord component
-
routingKeys
Returns the value of theroutingKeysrecord component.- Returns:
- the value of the
routingKeysrecord component
-
rate
Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-
threads
Returns the value of thethreadsrecord component.- Returns:
- the value of the
threadsrecord component
-
messageSize
Returns the value of themessageSizerecord component.- Returns:
- the value of the
messageSizerecord component
-
confirms
Returns the value of theconfirmsrecord component.- Returns:
- the value of the
confirmsrecord component
-
maxInFlight
Returns the value of themaxInFlightrecord component.- Returns:
- the value of the
maxInFlightrecord component
-
maxMessages
Returns the value of themaxMessagesrecord component.- Returns:
- the value of the
maxMessagesrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
expect
Returns the value of theexpectrecord component.- Returns:
- the value of the
expectrecord component
-