All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.gatling.amqp.client.WithAmqpChannel.scala Maven / Gradle / Ivy

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