ScheduleFire

data class ScheduleFire(val scheduleId: String, val scheduledFor: Instant, val now: Instant, val fence: Long)

A due schedule claimed under a lease, with what the runtime needs to compute the fire.

Constructors

Link copied to clipboard
constructor(scheduleId: String, scheduledFor: Instant, now: Instant, fence: Long)

Properties

Link copied to clipboard
val fence: Long

Fencing token: increases every time this schedule is claimed by JobStore.dueSchedules. JobStore.completeFire carrying a stale fence is rejected.

Link copied to clipboard

The store's clock at claim time. The runtime uses it to judge misfires and to compute the fire time that follows a missed window, so no node clock enters schedule math.

Link copied to clipboard

The stored next-fire time that came due.

Link copied to clipboard