final class SharedQueueBuilder extends NameGen
A factory of actions that exchange values over an in-memory queue, so virtual users can communicate with each other.
The queue is owned by this very builder instance, so that all the actions it builds share one single queue, just like feeders. Store it in a val and use
that same val everywhere the queue must be accessed.
The queue is local to this load generator: when running a distributed test with Gatling Enterprise, each load generator has its own queue and they don't exchange values with each other.
- Alphabetic
- By Inheritance
- SharedQueueBuilder
- NameGen
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def genName(base: String): String
- Definition Classes
- NameGen
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def peek(key: String): ActionBuilder
Bootstrap a builder for an action that copies the oldest value of this queue into the virtual user's Session, leaving it in the queue.
Bootstrap a builder for an action that copies the oldest value of this queue into the virtual user's Session, leaving it in the queue. If the queue is empty, the virtual user is marked as failed and moves on instead of waiting, and the Session attribute is left untouched.
- key
the name of the Session attribute the value is stored into
- def poll(key: String): ActionBuilder
Bootstrap a builder for an action that pops the oldest value of this queue into the virtual user's Session.
Bootstrap a builder for an action that pops the oldest value of this queue into the virtual user's Session. If the queue is empty, the virtual user is marked as failed and moves on instead of waiting, and the Session attribute is left untouched.
- key
the name of the Session attribute the value is stored into
- def put(value: Expression[Any]): ActionBuilder
Bootstrap a builder for an action that stores a value into this queue, then moves on without waiting.
Bootstrap a builder for an action that stores a value into this queue, then moves on without waiting.
- value
the value to be enqueued
- def size(key: String): ActionBuilder
Bootstrap a builder for an action that stores the current number of values in this queue into the virtual user's Session.
Bootstrap a builder for an action that stores the current number of values in this queue into the virtual user's Session.
- key
the name of the Session attribute the size is stored into
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(key: String): SharedQueueTakeBuilder
Bootstrap a builder for an action that pops the oldest value of this queue into the virtual user's Session.
Bootstrap a builder for an action that pops the oldest value of this queue into the virtual user's Session. If the queue is empty, the virtual user waits until a value is available, possibly forever unless SharedQueueTakeBuilder.timeout is used.
- key
the name of the Session attribute the value is stored into
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()