Class

com.logimethods.nats.connector.gatling

NatsBuilder

Related Doc: package gatling

Permalink

case class NatsBuilder(messageProvider: AnyRef) extends ActionBuilder with Product with Serializable

A Gatling ActionBuilder to inject messages into NATS.

Possible usage:

val natsScn = scenario("NATS call").exec(NatsBuilder(new ValueProvider()))
class ValueProvider {
  val incr = 10
  val basedValue = 100 -incr
  val maxIncr = 50
  var actualIncr = 0

  override def toString(): String = {
    actualIncr = (actualIncr % (maxIncr + incr)) + incr
    (basedValue + actualIncr).toString()
  }
}
messageProvider

the provider of the messages to emit. The actual message will be the output of the toString() method applied to this object (which could be a simple String if the message doesn't have to change over time).

See also

Write a Custom Protocol for Gatling

Linear Supertypes
Serializable, Serializable, Product, Equals, ActionBuilder, AkkaDefaults, AskSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NatsBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ActionBuilder
  7. AkkaDefaults
  8. AskSupport
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NatsBuilder(messageProvider: AnyRef)

    Permalink

    create a new NatsBuilder that will emit messages into NATS.

    create a new NatsBuilder that will emit messages into NATS.

    messageProvider

    the provider of the messages to emit. The actual message will be the output of the toString() method applied to this object (which could be a simple String if the message doesn't have to change over time).

Type Members

  1. class NatsCall extends BaseActor with Chainable with DataWriterClient

    Permalink
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def actorName(base: String): String

    Permalink
    Definition Classes
    AkkaDefaults
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def ask(actorSelection: ActorSelection, message: Any)(implicit timeout: Timeout): Future[Any]

    Permalink
    Definition Classes
    AskSupport
  7. implicit def ask(actorSelection: ActorSelection): AskableActorSelection

    Permalink
    Definition Classes
    AskSupport
  8. def ask(actorRef: ActorRef, message: Any)(implicit timeout: Timeout): Future[Any]

    Permalink
    Definition Classes
    AskSupport
  9. implicit def ask(actorRef: ActorRef): AskableActorRef

    Permalink
    Definition Classes
    AskSupport
  10. def build(next: ActorRef, protocols: Protocols): ActorRef

    Permalink
    Definition Classes
    NatsBuilder → ActionBuilder
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. implicit def dispatcher: ExecutionContextExecutor

    Permalink
    Definition Classes
    AkkaDefaults
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val messageProvider: AnyRef

    Permalink

    the provider of the messages to emit.

    the provider of the messages to emit. The actual message will be the output of the toString() method applied to this object (which could be a simple String if the message doesn't have to change over time).

  18. def natsProtocol(protocols: Protocols): NatsProtocol

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def registerDefaultProtocols(protocols: Protocols): Protocols

    Permalink
    Definition Classes
    ActionBuilder
  23. implicit def scheduler: Scheduler

    Permalink
    Definition Classes
    AkkaDefaults
  24. val simulationTimeOut: FiniteDuration

    Permalink
    Definition Classes
    AkkaDefaults
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. implicit def system: ActorSystem

    Permalink
    Definition Classes
    AkkaDefaults
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ActionBuilder

Inherited from AkkaDefaults

Inherited from AskSupport

Inherited from AnyRef

Inherited from Any

Ungrouped