
ru.tinkoff.gatling.amqp.request.PublishDslBuilderExchange.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.config.GatlingConfiguration
import io.gatling.core.session.Expression
case class PublishDslBuilderExchange(
requestName: Expression[String],
configuration: GatlingConfiguration,
) {
def topicExchange(name: Expression[String], routingKey: Expression[String]): PublishDslBuilderMessage =
destination(AmqpTopicExchange(name, routingKey = routingKey))
def directExchange(name: Expression[String], routingKey: Expression[String]): PublishDslBuilderMessage =
destination(AmqpDirectExchange(name, routingKey))
def queueExchange(name: Expression[String]): PublishDslBuilderMessage = destination(AmqpQueueExchange(name))
protected def destination(dest: AmqpExchange) = PublishDslBuilderMessage(requestName, dest, configuration)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy