Job

open class Job<PayloadT : Payload>(val jobName: String) : CoroutineScope

Represents an executable job taking its corresponding payload

Open for new jobs to extend and implement how it handlePayload

Job has its own thread pool for executing possibly heavy-duty operations in handlePayload

Also stores parsing logic related to JobMessage and JobRequest

Inheritors

Constructors

Link copied to clipboard
constructor(jobName: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

name of the job, that is the IPC topic name

Functions

Link copied to clipboard
open suspend fun handlePayload(payload: PayloadT)
Link copied to clipboard