All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.phisgr.gatling.kt.grpc.action.GrpcCallActionBuilder.kt Maven / Gradle / Ivy

The newest version!
package com.github.phisgr.gatling.kt.grpc.action

import com.github.phisgr.gatling.grpc.check.GrpcCheck
import com.github.phisgr.gatling.grpc.check.GrpcResponse
import com.github.phisgr.gatling.kt.grpc.internal.build
import com.github.phisgr.gatling.kt.grpc.request.CallDefinition
import io.gatling.javaapi.core.CheckBuilder
import com.github.phisgr.gatling.grpc.action.GrpcCallActionBuilder as GrpcCallActionBuilderS

class GrpcCallActionBuilder(private val wrapped: GrpcCallActionBuilderS) : CallDefinition<
    GrpcCallActionBuilder,
    Req,
    Res,
    GrpcResponse,
    GrpcCallActionBuilderS,
    GrpcCheck>() {
    override fun asScala(): GrpcCallActionBuilderS = wrapped

    override fun buildCheck(builder: CheckBuilder): GrpcCheck =
        builder.build()

    @JvmSynthetic
    override fun wrap(wrapped: GrpcCallActionBuilderS): GrpcCallActionBuilder =
        GrpcCallActionBuilder(wrapped)

    /**
     * See [GrpcCallActionBuilderS.silent]
     */
    fun silent() = wrap(asScala().silent())
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy