Packages

c

io.gatling.javaapi.core

CounterBuilder

final class CounterBuilder extends ActionBuilder

Builder of an action that stores an incrementing value into the virtual users' Session. Values are shared amongst all the virtual users of this load generator, unless #perUser() is used, in which case dynamic values become available on the returned PerUserCounterBuilder.

Immutable, so all methods return a new occurrence and leave the original unmodified.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CounterBuilder
  2. ActionBuilder
  3. Executable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CounterBuilder(key: String)

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 asScala(): core.action.builder.ActionBuilder

    For internal use only

    For internal use only

    returns

    the wrapped Scala instance

    Definition Classes
    CounterBuilder → ActionBuilder
    Annotations
    @Override()
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def perUser(): PerUserCounterBuilder

    Track the counter independently for each virtual user, so they all get the very same sequence of values, instead of sharing one single sequence.

    Track the counter independently for each virtual user, so they all get the very same sequence of values, instead of sharing one single sequence. Also unlocks dynamic values, eg functions and Gatling EL Strings, for PerUserCounterBuilder#startingAt, PerUserCounterBuilder#withIncrement and PerUserCounterBuilder#upTo, as a range resolved from one virtual user's Session couldn't define the sequence shared by all of them.

    returns

    a new PerUserCounterBuilder

    Annotations
    @NonNull()
  16. def shard(): CounterBuilder

    Distribute the values evenly amongst all the load generators of a Gatling Enterprise cluster, so they remain unique cluster wide.

    Distribute the values evenly amongst all the load generators of a Gatling Enterprise cluster, so they remain unique cluster wide. Only effective when the test is running with Gatling Enterprise, noop otherwise. Each load generator only gets a slice of the range, so the values emitted by the whole cluster have holes.

    returns

    a new CounterBuilder

    Annotations
    @NonNull()
  17. def startingAt(start: Int): CounterBuilder

    Set the first value to be emitted.

    Set the first value to be emitted. Must be positive. Default is 0.

    start

    the first value

    returns

    a new CounterBuilder

    Annotations
    @NonNull()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toChainBuilder(): ChainBuilder

    For internal use only

    For internal use only

    returns

    a ChainBuilder

    Definition Classes
    ActionBuilder → Executable
    Annotations
    @Override()
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. def upTo(end: Int): CounterBuilder

    Set the upper bound, exclusive, except when it's Integer.MAX_VALUE, which is the default.

    Set the upper bound, exclusive, except when it's Integer.MAX_VALUE, which is the default. Once it's reached, the load generator is stopped, unless #wrapAround() is used.

    end

    the exclusive upper bound

    returns

    a new CounterBuilder

    Annotations
    @NonNull()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. def withIncrement(increment: Int): CounterBuilder

    Set the gap between 2 successive values.

    Set the gap between 2 successive values. Default is 1.

    increment

    the gap between 2 successive values

    returns

    a new CounterBuilder

    Annotations
    @NonNull()
  26. def wrapAround(): CounterBuilder

    Start over from the first value once the upper bound is reached, instead of stopping the load generator.

    Start over from the first value once the upper bound is reached, instead of stopping the load generator. Beware values are then no longer unique.

    returns

    a new CounterBuilder

    Annotations
    @NonNull()

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 ActionBuilder

Inherited from Executable

Inherited from AnyRef

Inherited from Any

Ungrouped