Stream Start Builder
abstract class StreamStartBuilder<Self : StreamStartBuilder<Self, Req, Res, Wrapped>, Req, Res, Wrapped : StreamStartBuilder<Wrapped, Req, Res>> : CallDefinition<Self, Req, Res, Res, Wrapped, StreamCheck<Res>>
Content copied to clipboard
Superclass for starting a server stream or a bidi stream. For end checks, we do not need the lambda-taking API with From, because its content is only status (extracted with statusCode and statusDescription) and trailer.
Constructors
Types
Link copied to clipboard
Link copied to clipboard
class ConditionWithRes<Self : StreamStartBuilder<Self, Req, Res, Wrapped>, Wrapped : StreamStartBuilder<Wrapped, Req, Res>, Req, Res>(builder: Self, condition: Function2<GrpcStreamEnd, Session, Validation<PrimitiveBool>>)
Content copied to clipboard
Functions
Link copied to clipboard
inline fun callOptions(crossinline callOptions: (Session) -> CallOptions): Self
Content copied to clipboard
Link copied to clipboard
fun checkIf(condition: BiPredicate<Res, Session>): ActionCheckBuilder.ConditionWithRes<Self, Res, Res, StreamCheck<Res>>
Content copied to clipboard
fun checkIf(condition: Predicate<Session>): ActionCheckBuilder.ConditionWithoutRes<Self, Res, Res, StreamCheck<Res>>
Content copied to clipboard
inline fun checkIf(crossinline condition: (Session) -> Boolean): ActionCheckBuilder.ConditionWithoutRes<Self, Res, Res, StreamCheck<Res>>
Content copied to clipboard
Link copied to clipboard
fun endCheckIf(condition: BiPredicate<GrpcStreamEnd, Session>): StreamStartBuilder.ConditionWithRes<Self, Wrapped, Req, Res>
Content copied to clipboard
fun endCheckIf(condition: Predicate<Session>): StreamStartBuilder.ConditionWithoutRes<Self, Wrapped, Req, Res>
Content copied to clipboard
inline fun endCheckIf(crossinline condition: (Session) -> Boolean): StreamStartBuilder.ConditionWithoutRes<Self, Wrapped, Req, Res>
Content copied to clipboard
inline fun endCheckIf(crossinline condition: (GrpcStreamEnd, Session) -> Boolean): StreamStartBuilder.ConditionWithRes<Self, Wrapped, Req, Res>
Content copied to clipboard
fun endCheckIf(condition: String): StreamStartBuilder.ConditionWithoutRes<Self, Wrapped, Req, Res>
Content copied to clipboard
Link copied to clipboard
This exposes the internal StatsEngine of Gatling. No wrapper class around them, as this is a niche, advanced API.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard