Skip to content

//tempest2/app.cash.tempest2/WorkerId

WorkerId

[jvm]\ data class WorkerId(val segment: Int, val totalSegments: Int)

In the context of parallel scans, a worker is analogous to a thread or an operating system process. Each worker then issues its own Scan request with a unique WorkerId, which represents a tuple of segment and totalSegments.

Constructors

WorkerId [jvm]
constructor(segment: Int, totalSegments: Int)

Properties

Name Summary
segment [jvm]
val segment: Int
totalSegments [jvm]
val totalSegments: Int