Package org.acemq.workloads.scenario
Record Class ScenarioFile.QueueJson
java.lang.Object
java.lang.Record
org.acemq.workloads.scenario.ScenarioFile.QueueJson
- Record Components:
name- what it is calledtype- classic, classic-mirrored, quorum or streamdurable- whether it survives a restartenabled- whether it takes partdeadLetterExchange- where rejected messages gobindings- where its messages come fromconsumers- who reads itarguments- anything else the broker takes
- Enclosing class:
ScenarioFile
public static record ScenarioFile.QueueJson(String name, String type, Boolean durable, Boolean enabled, String deadLetterExchange, List<ScenarioFile.BindingJson> bindings, ScenarioFile.ConsumersJson consumers, Map<String,Object> arguments, ScenarioFile.ExpectJson expect, String broker)
extends Record
A queue, its bindings and its consumers.
-
Constructor Summary
ConstructorsConstructorDescriptionQueueJson(String name, String type, Boolean durable, Boolean enabled, String deadLetterExchange, List<ScenarioFile.BindingJson> bindings, ScenarioFile.ConsumersJson consumers, Map<String, Object> arguments) A queue that is asked to prove nothing in particular.QueueJson(String name, String type, Boolean durable, Boolean enabled, String deadLetterExchange, List<ScenarioFile.BindingJson> bindings, ScenarioFile.ConsumersJson consumers, Map<String, Object> arguments, ScenarioFile.ExpectJson expect) A queue on the broker the scenario runs against.QueueJson(String name, String type, Boolean durable, Boolean enabled, String deadLetterExchange, List<ScenarioFile.BindingJson> bindings, ScenarioFile.ConsumersJson consumers, Map<String, Object> arguments, ScenarioFile.ExpectJson expect, String broker) Creates an instance of aQueueJsonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.bindings()Returns the value of thebindingsrecord component.broker()Returns the value of thebrokerrecord component.Returns the value of theconsumersrecord component.Returns the value of thedeadLetterExchangerecord component.durable()Returns the value of thedurablerecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.expect()Returns the value of theexpectrecord component.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.type()Returns the value of thetyperecord component.
-
Constructor Details
-
QueueJson
public QueueJson(String name, String type, Boolean durable, Boolean enabled, String deadLetterExchange, List<ScenarioFile.BindingJson> bindings, ScenarioFile.ConsumersJson consumers, Map<String, Object> arguments, ScenarioFile.ExpectJson expect) A queue on the broker the scenario runs against. -
QueueJson
public QueueJson(String name, String type, Boolean durable, Boolean enabled, String deadLetterExchange, List<ScenarioFile.BindingJson> bindings, ScenarioFile.ConsumersJson consumers, Map<String, Object> arguments) A queue that is asked to prove nothing in particular. -
QueueJson
public QueueJson(String name, String type, Boolean durable, Boolean enabled, String deadLetterExchange, List<ScenarioFile.BindingJson> bindings, ScenarioFile.ConsumersJson consumers, Map<String, Object> arguments, ScenarioFile.ExpectJson expect, String broker) Creates an instance of aQueueJsonrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentdurable- the value for thedurablerecord componentenabled- the value for theenabledrecord componentdeadLetterExchange- the value for thedeadLetterExchangerecord componentbindings- the value for thebindingsrecord componentconsumers- the value for theconsumersrecord componentarguments- the value for theargumentsrecord componentexpect- the value for theexpectrecord componentbroker- the value for thebrokerrecord 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
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
durable
Returns the value of thedurablerecord component.- Returns:
- the value of the
durablerecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
deadLetterExchange
Returns the value of thedeadLetterExchangerecord component.- Returns:
- the value of the
deadLetterExchangerecord component
-
bindings
Returns the value of thebindingsrecord component.- Returns:
- the value of the
bindingsrecord component
-
consumers
Returns the value of theconsumersrecord component.- Returns:
- the value of the
consumersrecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
expect
Returns the value of theexpectrecord component.- Returns:
- the value of the
expectrecord component
-
broker
Returns the value of thebrokerrecord component.- Returns:
- the value of the
brokerrecord component
-