Packages

t

io.gatling.javaapi.core

FeederBuilder

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FeederBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def asScala(): () => Iterator[Map[String, AnyRef]]

    For internal use only

    For internal use only

    returns

    the wrapped Scala instance

  2. 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()
  3. 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()
  4. 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()
  5. 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()
  6. 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

  7. 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()
  8. 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()
  9. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped