StreamStartBuilder

abstract class StreamStartBuilder<Self : StreamStartBuilder<Self, Req, Res, Wrapped>, Req, Res, Wrapped : StreamStartBuilder<Wrapped, Req, Res>> : CallDefinition<Self, Req, Res, Res, Wrapped, StreamCheck<Res>>

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

Link copied to clipboard
fun StreamStartBuilder()

Types

Link copied to clipboard
class ConditionWithoutRes<Self : StreamStartBuilder<Self, Req, Res, Wrapped>, Wrapped : StreamStartBuilder<Wrapped, Req, Res>, Req, Res>(builder: Self, condition: Function1<Session, Validation<PrimitiveBool>>)
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>>)

Functions

Link copied to clipboard
abstract override fun asScala(): Wrapped
Link copied to clipboard
fun callOptions(callOptions: CallOptions): Self
fun callOptions(callOptions: Function<Session, CallOptions>): Self
inline fun callOptions(crossinline callOptions: (Session) -> CallOptions): Self
Link copied to clipboard
fun check(vararg checks: CheckBuilder): Self
fun check(vararg checks: From<Res>.() -> CheckBuilder): Self
Link copied to clipboard
fun checkIf(condition: BiPredicate<Res, Session>): ActionCheckBuilder.ConditionWithRes<Self, Res, Res, StreamCheck<Res>>
fun checkIf(condition: Predicate<Session>): ActionCheckBuilder.ConditionWithoutRes<Self, Res, Res, StreamCheck<Res>>
inline fun checkIf(crossinline condition: (Session) -> Boolean): ActionCheckBuilder.ConditionWithoutRes<Self, Res, Res, StreamCheck<Res>>
inline fun checkIf(crossinline condition: (Res, Session) -> Boolean): ActionCheckBuilder.ConditionWithRes<Self, Res, Res, StreamCheck<Res>>
fun checkIf(condition: String): ActionCheckBuilder.ConditionWithoutRes<Self, Res, Res, StreamCheck<Res>>
Link copied to clipboard
fun endCheck(vararg checks: CheckBuilder): Self
Link copied to clipboard
fun endCheckIf(condition: BiPredicate<GrpcStreamEnd, Session>): StreamStartBuilder.ConditionWithRes<Self, Wrapped, Req, Res>
fun endCheckIf(condition: Predicate<Session>): StreamStartBuilder.ConditionWithoutRes<Self, Wrapped, Req, Res>
inline fun endCheckIf(crossinline condition: (Session) -> Boolean): StreamStartBuilder.ConditionWithoutRes<Self, Wrapped, Req, Res>
inline fun endCheckIf(crossinline condition: (GrpcStreamEnd, Session) -> Boolean): StreamStartBuilder.ConditionWithRes<Self, Wrapped, Req, Res>
fun endCheckIf(condition: String): StreamStartBuilder.ConditionWithoutRes<Self, Wrapped, Req, Res>
Link copied to clipboard
fun eventExtractor(extractor: EventExtractor<Res>): Self

This exposes the internal StatsEngine of Gatling. No wrapper class around them, as this is a niche, advanced API.

Link copied to clipboard
fun <T : Any> header(key: Metadata.Key<T>, value: T): Self
fun <T : Any> header(key: Metadata.Key<T>, value: Function<Session, T>): Self
inline fun <T : Any> header(key: Metadata.Key<T>, crossinline value: (Session) -> T): Self
inline fun <T : Message, Builder : Message.Builder> header(    key: Metadata.Key<T>,     crossinline newBuilder: () -> Builder,     crossinline f: Builder.(Session) -> T): Self
Link copied to clipboard
inline fun <T : Any> headerEL(key: Metadata.Key<T>, el: String): Self
fun <T : Any> headerEL(    key: Metadata.Key<T>,     el: String,     clazz: Class<T>): Self
Link copied to clipboard
fun sessionCombiner(sessionCombiner: SessionCombiner): Self
Link copied to clipboard
fun streamEndLog(logWhen: StreamEndLog): Self
Link copied to clipboard
fun target(protocol: GrpcProtocol<*, *>): Self
Link copied to clipboard
fun timestampExtractor(extractor: TimestampExtractor<Res>): Self

Inheritors

Link copied to clipboard
Link copied to clipboard