KronoJob

data class KronoJob(val id: String = UUID.randomUUID().toString(), val jobName: String, val params: Map<String, String>, val startTime: Long, val endTime: Long? = null, val interval: <Error class: unknown class>? = null, val periodic: Periodic? = null, val maxCycles: Int? = null, val retries: Int = 0, val createdAt: Long = Clock.System.now().toEpochMilliseconds(), val originCreatedAt: <Error class: unknown class> = Clock.System.now().toLocalDateTime(TimeZone.UTC), val locks: Int = 0, val overshotAction: OvershotAction)

Constructors

Link copied to clipboard
constructor(id: String = UUID.randomUUID().toString(), jobName: String, params: Map<String, String>, startTime: Long, endTime: Long? = null, interval: <Error class: unknown class>? = null, periodic: Periodic? = null, maxCycles: Int? = null, retries: Int = 0, createdAt: Long = Clock.System.now().toEpochMilliseconds(), originCreatedAt: <Error class: unknown class> = Clock.System.now().toLocalDateTime(TimeZone.UTC), locks: Int = 0, overshotAction: OvershotAction)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val endTime: Long? = null
Link copied to clipboard
open val id: String
Link copied to clipboard
val interval: <Error class: unknown class>? = null
Link copied to clipboard

This should be unique for every job

Link copied to clipboard
val locks: Int = 0

Active processes executing a job on this job. This is to prevent race conditions when using microservices

Link copied to clipboard
val maxCycles: Int? = null
Link copied to clipboard
val originCreatedAt: <Error class: unknown class>

The creationDate of the original Job. Decided to use LocalDateTime just so it is readable for debugging since no action would be performed on this

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val periodic: Periodic? = null
Link copied to clipboard
Link copied to clipboard
val retries: Int = 0
Link copied to clipboard

This should be in UTC Format