trait FeederBuilder[T] extends AnyRef
Builder of feeders, ie sources of data that are shared amongst all virtual users. Typically backed by an underlying resource, such as a CSV file.
Immutable so each method doesn't mutate the current instance but returns a new one.
- Alphabetic
- By Inheritance
- FeederBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def asScala(): () => Iterator[Map[String, AnyRef]]
For internal use only
For internal use only
- returns
the wrapped Scala instance
- abstract def circular(): FeederBuilder[T]
Set a circular strategy.
Set a circular strategy. Records will be provided in the same order as defined in the underlying source. Once the last record of the underlying source is reached, the feeder will go back to the first record. A given record can be provided multiple times. Such feeder will never run out of records.
- returns
a new FeederBuilder
- Annotations
- @NonNull()
- abstract def queue(): FeederBuilder[T]
Set a queue strategy.
Set a queue strategy. Records will be provided in the same order as defined in the underlying source. A given record will only be provided once. The run will be immediately stopped if the feeder runs out of records.
- returns
a new FeederBuilder
- Annotations
- @NonNull()
- abstract def random(): FeederBuilder[T]
Set a random strategy.
Set a random strategy. Records will be provided in a random order, unrelated to the order in the underlying source. A given record can be provided multiple times. Such feeder will never run out of records.
- returns
a new FeederBuilder
- Annotations
- @NonNull()
- abstract def readRecords(): List[Map[String, AnyRef]]
Read all the records of the underlying source.
Read all the records of the underlying source.
- returns
the whole data
- Annotations
- @NonNull()
- abstract def recordsCount(): Int
Return the number of records more efficiantly than readRecords().size().
Return the number of records more efficiantly than readRecords().size().
- returns
the number of recordss
- abstract def shard(): FeederBuilder[T]
Distribute data evenly amongst all the injectors of a Gatling Enterprise cluster.
Distribute data evenly amongst all the injectors of a Gatling Enterprise cluster. Only effective when the test is running with Gatling Enterprise, noop otherwise.
- returns
a new FeederBuilder
- Annotations
- @NonNull()
- abstract def shuffle(): FeederBuilder[T]
Set a shuffle strategy.
Set a shuffle strategy. Records will be provided in a random order, unrelated to the order in the underlying source. A given record will only be provided once. The run will be immediately stopped if the feeder runs out of records.
- returns
a new FeederBuilder
- Annotations
- @NonNull()
- abstract def transform(f: BiFunction[String, T, AnyRef]): FeederBuilder[AnyRef]
Provide a function to transform records as defined in the underlying source
Provide a function to transform records as defined in the underlying source
- f
the transformation function
- returns
a new FeederBuilder
- Annotations
- @NonNull()
Concrete 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
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()