Class WorkerEnvironmentInfo
java.lang.Object
io.temporal.internal.worker.WorkerEnvironmentInfo
Detects the runtime, hosting environment, and platform information reported in the first accepted
worker heartbeat.
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.temporal.api.worker.v1.EnvironmentInfodetect()Best effort: this runs during client creation, and telemetry must not break it.static booleanisKotlinImplementation(Class<?> implementationClass) Detects Kotlin implementation classes without a Kotlin dependency or assuming a shared annotation class loader.static io.temporal.api.worker.v1.EnvironmentInfowithKotlinRuntime(io.temporal.api.worker.v1.EnvironmentInfo info, Class<?> implementationClass) Returns immutable environment information augmented with Kotlin when the implementation has Kotlin metadata.
-
Method Details
-
detect
public static io.temporal.api.worker.v1.EnvironmentInfo detect()Best effort: this runs during client creation, and telemetry must not break it. Each probe is isolated so unavailable runtime information does not prevent platform or hosting detection. -
isKotlinImplementation
Detects Kotlin implementation classes without a Kotlin dependency or assuming a shared annotation class loader. -
withKotlinRuntime
@Nullable public static io.temporal.api.worker.v1.EnvironmentInfo withKotlinRuntime(@Nullable io.temporal.api.worker.v1.EnvironmentInfo info, @Nullable Class<?> implementationClass) Returns immutable environment information augmented with Kotlin when the implementation has Kotlin metadata. A null environment (telemetry opt-out) is preserved, as are existing runtimes.
-