import { Duration } from "../utils/duration"; import { SessionTo } from "../session"; import { On } from "./on"; import JvmDoWhileDuring = io.gatling.javaapi.core.loop.DoWhileDuring; export interface DoWhileDuringFunction> { /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, either an integer number of seconds or an object with an explicit time unit * @returns a DSL component for defining the loop content */ (condition: string, duration: Duration): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, either an integer number of seconds or an object with an explicit time unit * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component for defining the loop content */ (condition: string, duration: Duration, counterName: string): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, either an integer number of seconds or an object with an explicit time unit * @param exitASAP - if the loop must be interrupted if the condition becomes false or the maximum duration is reached * inside the loop * @returns a DSL component for defining the loop content */ (condition: string, duration: Duration, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, either an integer number of seconds or an object with an explicit time unit * @param counterName - the name of the loop counter, as stored in the Session * @param exitASAP - if the loop must be interrupted if the condition becomes false or the maximum duration is reached * inside the loop * @returns a DSL component for defining the loop content */ (condition: string, duration: Duration, counterName: string, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, expressed as a function * @returns a DSL component for defining the loop content */ (condition: string, duration: SessionTo): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, expressed as a function * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component for defining the loop content */ (condition: string, duration: SessionTo, counterName: string): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, expressed as a function * @param exitASAP - if the loop must be interrupted if the condition becomes false or the maximum duration is reached * inside the loop * @returns a DSL component for defining the loop content */ (condition: string, duration: SessionTo, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, expressed as a function * @param counterName - the name of the loop counter, as stored in the Session * @param exitASAP - if the loop must be interrupted if the condition becomes false or the maximum duration is reached * inside the loop * @returns a DSL component for defining the loop content */ (condition: string, duration: SessionTo, counterName: string, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, expressed as a Gatling Expression Language String that * must either evaluate to an integer number of seconds or an object with an explicit time unit * @returns a DSL component for defining the loop content */ (condition: string, duration: string): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, expressed as a Gatling Expression Language String that * must either evaluate to an integer number of seconds or an object with an explicit time unit * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component for defining the loop content */ (condition: string, duration: string, counterName: string): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, expressed as a Gatling Expression Language String that * must either evaluate to an integer number of seconds or an object with an explicit time unit * @param exitASAP - if the loop must be interrupted if the condition becomes false or the maximum duration is reached * inside the loop * @returns a DSL component for defining the loop content */ (condition: string, duration: string, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a Gatling Expression Language String * @param duration - the maximum duration, expressed as a Gatling Expression Language String that * must either evaluate to an integer number of seconds or an object with an explicit time unit * @param counterName - the name of the loop counter, as stored in the Session * @param exitASAP - if the loop must be interrupted if the condition becomes false or the maximum duration is reached * inside the loop * @returns a DSL component for defining the loop content */ (condition: string, duration: string, counterName: string, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a function * @param duration - the maximum duration, either an integer number of seconds or an object with an explicit time unit * @returns a DSL component for defining the loop content */ (condition: SessionTo, duration: Duration): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a function * @param duration - the maximum duration, either an integer number of seconds or an object with an explicit time unit * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component for defining the loop content */ (condition: SessionTo, duration: Duration, counterName: string): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a function * @param duration - the maximum duration, either an integer number of seconds or an object with an explicit time unit * @param exitASAP - if the loop must be interrupted if the condition becomes false or the maximum duration is reached * inside the loop * @returns a DSL component for defining the loop content */ (condition: SessionTo, duration: Duration, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a function * @param duration - the maximum duration, either an integer number of seconds or an object with an explicit time unit * @param counterName - the name of the loop counter, as stored in the Session * @param exitASAP - if the loop must be interrupted if the condition becomes false or the maximum duration is reached * inside the loop * @returns a DSL component for defining the loop content */ (condition: SessionTo, duration: Duration, counterName: string, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a function * @param duration - the maximum duration, expressed as a function * @returns a DSL component for defining the loop content */ (condition: SessionTo, duration: SessionTo): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a function * @param duration - the maximum duration, expressed as a function * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component for defining the loop content */ (condition: SessionTo, duration: SessionTo, counterName: string): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a function * @param duration - the maximum duration, expressed as a function * @param exitASAP - if the loop must be interrupted if the condition becomes false or the maximum duration is reached * inside the loop * @returns a DSL component for defining the loop content */ (condition: SessionTo, duration: SessionTo, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true and a maximum duration * isn't reached. The condition is evaluated at the end of the loop. * * @param condition - the condition, expressed as a function * @param duration - the maximum duration, expressed as a function * @param counterName - the name of the loop counter, as stored in the Session * @param exitASAP - if the loop must be interrupted if the condition becomes false or the maximum duration is reached * inside the loop * @returns a DSL component for defining the loop content */ (condition: SessionTo, duration: SessionTo, counterName: string, exitASAP: boolean): On; } export interface DoWhileDuring> { doWhileDuring: DoWhileDuringFunction; } export declare const doWhileDuringImpl: , T extends DoWhileDuring>(jvmDoWhileDuring: J1, wrap: (wrapped: J2) => T) => DoWhileDuringFunction;