Schedule

interface Schedule

When a recurring job fires. Schedule evaluation happens entirely in the runtime; a com.eventslooped.klokka.spi.JobStore only persists the next fire time and never sees or evaluates an expression, so custom implementations of this interface (a "last business day of the month" builder, for example) work with every store unchanged.

Properties

Link copied to clipboard
abstract val description: String

Canonical, human-readable form of this schedule, such as every 5m or cron '0 9 * * 1-5' Europe/Oslo.

Functions

Link copied to clipboard
abstract fun nextAfter(after: Instant): Instant?

The first fire time strictly after after, or null if the schedule never fires again.