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

io.snice.gatling.diameter.protocol.DiameterComponents.scala Maven / Gradle / Ivy

The newest version!
package io.snice.gatling.diameter.protocol

import io.gatling.core.protocol.ProtocolComponents
import io.gatling.core.session.Session
import io.snice.gatling.diameter.engine.DiameterEngine

final case class DiameterComponents(protocol: DiameterProtocol,
                                    engine: DiameterEngine)
  extends ProtocolComponents {

  override def onStart: Session => Session = {
    engine.start(protocol.peers)
    ProtocolComponents.NoopOnStart
  }
  override def onExit: Session => Unit = ProtocolComponents.NoopOnExit

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy