com.github.phisgr.gatling.kt.grpc.stream.TimestampExtractor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gatling-grpc-kt Show documentation
Show all versions of gatling-grpc-kt Show documentation
Kotlin/Java binding for Gatling-gRPC
The newest version!
package com.github.phisgr.gatling.kt.grpc.stream
import io.gatling.javaapi.core.Session
import com.github.phisgr.gatling.grpc.stream.TimestampExtractor as TimestampExtractorS
import io.gatling.core.session.Session as SessionS
@FunctionalInterface
fun interface TimestampExtractor : TimestampExtractorS<@UnsafeVariance Res> {
companion object {
@JvmField
val IGNORE: TimestampExtractor = TimestampExtractor { _, _, _ -> IGNORE_MESSAGE }
/**
* See [TimestampExtractorS.IgnoreMessage]
*/
@JvmField
val IGNORE_MESSAGE = TimestampExtractorS.IgnoreMessage()
}
/**
* See [TimestampExtractorS.extractTimestamp]
*/
fun extractTimestamp(session: Session, message: Res, streamStartTime: Long): Long
override fun extractTimestamp(session: SessionS, message: Res, streamStartTime: Long): Long =
extractTimestamp(Session(session), message, streamStartTime)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy