InMemoryJobSnapshot

data class InMemoryJobSnapshot(val state: JobState, val attempts: Int, val fence: Long, val queue: QueueName, val leaseUntil: Instant?)

Snapshot of a stored job's mutable fields, for tests to assert on without reflection.

Constructors

Link copied to clipboard
constructor(state: JobState, attempts: Int, fence: Long, queue: QueueName, leaseUntil: Instant?)

Properties

Link copied to clipboard
Link copied to clipboard
val fence: Long
Link copied to clipboard

The current lease expiry while Running; null otherwise.

Link copied to clipboard
Link copied to clipboard