
ru.tinkoff.gatling.amqp.client.WithAmqpChannel.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.client
import com.rabbitmq.client.Channel
trait WithAmqpChannel {
protected val pool: AmqpConnectionPool
def withChannel[T](channelAction: Channel => T): T = {
val ch = pool.channel
val result = channelAction(ch)
pool.returnChannel(ch)
result
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy