import { Duration } from "../utils/duration"; import { SessionTo } from "../session"; import { On } from "./on"; import JvmDuring = io.gatling.javaapi.core.loop.During; export interface DuringFunction> { /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration, in seconds or with an explicit time unit * @returns a DSL component for defining the loop content */ (duration: Duration): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration, in seconds or with an explicit time unit * @param exitASAP - if the loop must be interrupted if the max duration is reached inside the loop * @returns a DSL component for defining the loop content */ (duration: Duration, exitASAP: boolean): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration, in seconds or 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 */ (duration: Duration, counterName: string): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration, in seconds or 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 max duration is reached inside the loop * @returns a DSL component for defining the loop content */ (duration: Duration, counterName: string, exitASAP: boolean): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration as a Gatling Expression Language string. This expression must resolve to * either a number, then the unit will be seconds, or an object with an explicit time unit. * @returns a DSL component for defining the loop content */ (duration: string): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration as a Gatling Expression Language string. This expression must resolve to * either a number, then the unit will be seconds, or an object with an explicit time unit. * @param exitASAP - if the loop must be interrupted if the max duration is reached inside the loop * @returns a DSL component for defining the loop content */ (duration: string, exitASAP: boolean): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration as a Gatling Expression Language string. This expression must resolve to * either a number, then the unit will be 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 */ (duration: string, counterName: string): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration as a Gatling Expression Language string. This expression must resolve to * either a number, then the unit will be 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 max duration is reached inside the loop * @returns a DSL component for defining the loop content */ (duration: string, counterName: string, exitASAP: boolean): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration as a function * @returns a DSL component for defining the loop content */ (duration: SessionTo): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration as a function * @param exitASAP - if the loop must be interrupted if the max duration is reached inside the loop * @returns a DSL component for defining the loop content */ (duration: SessionTo, exitASAP: boolean): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration 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 */ (duration: SessionTo, counterName: string): On; /** * Define a loop that will iterate for a given duration. The condition is evaluated at the end of * the loop. * * @param duration - the maximum duration 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 max duration is reached inside the loop * @returns a DSL component for defining the loop content */ (duration: SessionTo, counterName: string, exitASAP: boolean): On; } export interface During> { during: DuringFunction; } export declare const duringImpl: , T extends During>(jvmDuring: J1, wrap: (wrapped: J2) => T) => DuringFunction;