UNPKG

@gatling.io/mqtt

Version:

Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).

52 lines (51 loc) 1.72 kB
import { Body, Session, Wrapper } from "@gatling.io/core"; import JvmLastWillBuilder = io.gatling.javaapi.mqtt.LastWillBuilder; export interface LastWillBuilder extends Wrapper<JvmLastWillBuilder> { /** * Use an at-most-once QoS * * @returns a new LastWillBuilder instance */ qosAtMostOnce(): LastWillBuilder; /** * Use an at-least-once QoS * * @returns a new LastWillBuilder instance */ qosAtLeastOnce(): LastWillBuilder; /** * Use an exactly-once QoS * * @returns a new LastWillBuilder instance */ qosExactlyOnce(): LastWillBuilder; /** * Instruct the server to retain the last will message * * @returns a new LastWillBuilder instance */ retain(newRetain: boolean): LastWillBuilder; } export declare const wrapLastWillBuilder: (_underlying: JvmLastWillBuilder) => LastWillBuilder; export declare namespace LastWill { interface Apply { /** * Bootstrap a builder for last will messages * * @param topic - the topic to send last will messages to, expressed as a Gatling Expression * Language String * @param message - the last will message * @returns the next DSL step */ (topic: string, message: Body): LastWillBuilder; /** * Bootstrap a builder for last will messages * * @param topic - the topic to send last will messages to, expressed as a function * @param message - the last will message * @returns the next DSL step */ (topic: (session: Session) => string, message: Body): LastWillBuilder; } } export declare const LastWill: LastWill.Apply;