
ru.tinkoff.gatling.amqp.request.RequestReplyDslBuilderExchange.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gatling-amqp-plugin_2.13 Show documentation
Show all versions of gatling-amqp-plugin_2.13 Show documentation
Plugin for support performance testing with AMQP in Gatling
The newest version!
package ru.tinkoff.gatling.amqp.request
import io.gatling.core.Predef._
import io.gatling.core.config.GatlingConfiguration
import io.gatling.core.session.Expression
case class RequestReplyDslBuilderExchange(requestName: Expression[String], configuration: GatlingConfiguration) {
def directExchange(name: Expression[String], routingKey: Expression[String]): RequestReplyDslBuilderMessage =
destination(AmqpDirectExchange(name, routingKey))
def topicExchange(name: Expression[String], routingKey: Expression[String]): RequestReplyDslBuilderMessage =
destination(AmqpTopicExchange(name, routingKey))
def queueExchange(name: Expression[String]): RequestReplyDslBuilderMessage = destination(AmqpQueueExchange(name))
def destination(dest: AmqpExchange): RequestReplyDslBuilderMessage =
RequestReplyDslBuilderMessage(
requestName,
dest,
AmqpQueueExchange(""),
setReplyTo = false,
None,
configuration,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy